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 committed by Tiago Garcia
parent 552276cb23
commit 7d27760751
Signed by: TiagoRG
GPG Key ID: FF0A53A30B1ADF82
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 = true, pair = '""', disabled_filetypes = {"gitcommit", "tex"} },
["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {"gitcommit", "tex"} },
["`"] = { 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", "asciidoc"} },
["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {"gitcommit", "tex", "asciidoc"} },
["$"] = { escape = true, close = true, pair = "$$", enabled_filetypes = {"tex"} },
},

View File

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

View File

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

View File

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

View File

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

View File

@ -69,22 +69,4 @@ return require('packer').startup(function(use)
-- Little friend
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)

View File

@ -30,7 +30,6 @@ vim.opt.undofile = true
vim.opt.termguicolors = true
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