Neovim changes

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-06-22 19:40:50 +01:00
parent 3b03fb6cd2
commit 6829cde082
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
7 changed files with 16 additions and 35 deletions

View File

@ -9,9 +9,9 @@ require("autoclose").setup({
["]"] = { escape = true, close = false, pair = "[]", disabled_filetypes = {} }, ["]"] = { escape = true, close = false, pair = "[]", disabled_filetypes = {} },
["}"] = { escape = true, close = false, pair = "{}", disabled_filetypes = {} }, ["}"] = { escape = true, close = false, pair = "{}", disabled_filetypes = {} },
['"'] = { escape = true, close = true, pair = '""', disabled_filetypes = {"gitcommit", "tex"} }, ['"'] = { escape = true, close = true, pair = '""', disabled_filetypes = {"gitcommit", "tex", "asciidoc"} },
["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {"gitcommit", "tex"} }, ["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {"gitcommit", "tex", "asciidoc"} },
["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {"gitcommit", "tex"} }, ["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {"gitcommit", "tex", "asciidoc"} },
["$"] = { escape = true, close = true, pair = "$$", enabled_filetypes = {"tex"} }, ["$"] = { escape = true, close = true, pair = "$$", enabled_filetypes = {"tex"} },
}, },

View File

@ -10,7 +10,7 @@ require('lualine').setup {
}, },
ignore_focus = {}, ignore_focus = {},
always_divide_middle = true, always_divide_middle = true,
globalstatus = false, globalstatus = true,
refresh = { refresh = {
statusline = 10, statusline = 10,
tabline = 1000, tabline = 1000,

View File

@ -1,7 +1,7 @@
require("trouble").setup { require("trouble").setup {
position = "bottom", position = "bottom",
auto_open = true, auto_open = true,
auto_close = true, auto_close = false,
auto_preview = false, auto_preview = false,
icons = true, icons = true,
} }

View File

@ -1,6 +1,4 @@
require("wrapping").setup() local opts = {
opts = {
auto_set_mode_filetype_allowlist = { auto_set_mode_filetype_allowlist = {
"asciidoc", "asciidoc",
"gitcommit", "gitcommit",
@ -14,3 +12,5 @@ opts = {
}, },
soft_wrap = true, soft_wrap = true,
} }
require("wrapping").setup(opts)

View File

@ -7,13 +7,13 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
end, end,
}) })
vim.api.nvim_exec([[ vim.api.nvim_create_autocmd({"CmdlineLeave", "CmdlineChanged"}, {
augroup SearchHighlight group = vim.api.nvim_create_augroup("SearchHighlight", { clear = true }),
autocmd! pattern = { "/", "\\?" },
autocmd CmdlineLeave /,\? :nnoremap <buffer> <Esc> :noh<CR> callback = function()
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :noh<CR> vim.cmd([[nnoremap <buffer> <Esc> :noh<CR>]])
augroup END end
]], false) })
vim.api.nvim_create_autocmd("TextYankPost", { vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight yanked text", desc = "Highlight yanked text",

View File

@ -69,22 +69,4 @@ return require('packer').startup(function(use)
-- Little friend -- Little friend
use("github/copilot.vim") use("github/copilot.vim")
-- trying out
use {
'windwp/nvim-ts-autotag',
config = function()
require('nvim-ts-autotag').setup()
-- require 'nvim-treesitter.configs'.setup {
-- autotag = {
-- enable = true,
-- enable_rename = true,
-- enable_close = true,
-- enable_close_on_slash = true,
-- filetypes = { "html", "xml", "javascript", "typescript", "svelte", "vue", "javascriptreact", "typescriptreact"},
-- }
-- }
end
}
use 'mg979/vim-visual-multi'
end) end)

View File

@ -30,7 +30,6 @@ vim.opt.undofile = true
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.isfname:append("@-@") vim.opt.isfname:append("@-@")
vim.opt.guitablabel = "\\[%N\\]\\ %t\\ %M"
vim.g.copilot_node_command = "/usr/bin/nodenv" vim.g.copilot_node_command = "node"
vim.g.copilot_assume_mapped = true vim.g.copilot_assume_mapped = true