Neovim changes
Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
parent
b83cbea57f
commit
e83cd638d4
|
@ -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"} },
|
||||
},
|
||||
|
|
|
@ -10,7 +10,7 @@ require('lualine').setup {
|
|||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
globalstatus = true,
|
||||
refresh = {
|
||||
statusline = 10,
|
||||
tabline = 1000,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require("trouble").setup {
|
||||
position = "bottom",
|
||||
auto_open = true,
|
||||
auto_close = true,
|
||||
auto_close = false,
|
||||
auto_preview = false,
|
||||
icons = true,
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue