Compare commits
3 Commits
79e474e8eb
...
d873f5ffb1
Author | SHA1 | Date | |
---|---|---|---|
d873f5ffb1 | |||
9e422fd019 | |||
e768b07fda |
@ -115,10 +115,21 @@ null_ls.setup({
|
||||
})
|
||||
|
||||
-- setup lsp_lines
|
||||
local lsp_lines = require("lsp_lines")
|
||||
lsp_lines.setup()
|
||||
require("lsp_lines").setup()
|
||||
|
||||
-- setup vim diagnostics
|
||||
vim.diagnostic.config({
|
||||
virtual_text = false,
|
||||
signs = true,
|
||||
update_in_insert = true,
|
||||
underline = true,
|
||||
severity_sort = false,
|
||||
float = {
|
||||
border = "rounded",
|
||||
source = "always",
|
||||
header = "",
|
||||
prefix = "",
|
||||
},
|
||||
})
|
||||
|
||||
-- setup html languageserver
|
||||
|
@ -34,6 +34,10 @@ vim.opt.inccommand = "split"
|
||||
-- completion
|
||||
vim.opt.completeopt = "menu,menuone,noselect"
|
||||
|
||||
-- folding
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||
|
||||
-- set cursorline in active window
|
||||
vim.cmd([[
|
||||
augroup CursorLine
|
||||
@ -51,4 +55,3 @@ vim.cmd([[
|
||||
autocmd TermOpen * setlocal nonumber norelativenumber
|
||||
augroup END
|
||||
]])
|
||||
|
||||
|
@ -1,8 +1,20 @@
|
||||
require('nvim-treesitter.configs').setup({
|
||||
highlight = { enable = true, additional_vim_regex_highlighting = false },
|
||||
ensure_installed = {
|
||||
"bash", "c", "cpp", "css", "dockerfile", "hcl", "html", "javascript",
|
||||
"json", "latex", "lua", "markdown", "nix", "python", "rust", "svelte",
|
||||
"toml", "tsx", "typescript", "vim", "vue", "yaml"
|
||||
}
|
||||
},
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
max_file_lines = nil,
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user