81 lines
2.2 KiB
Lua
81 lines
2.2 KiB
Lua
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
|
local lspconfig = require('lspconfig')
|
|
lspconfig.bashls.setup { capabilities = capabilities }
|
|
lspconfig.nixd.setup { capabilities = capabilities }
|
|
lspconfig.html.setup { capabilities = capabilities }
|
|
lspconfig.cssls.setup { capabilities = capabilities }
|
|
lspconfig.lua_ls.setup {
|
|
settings = {
|
|
capabilities = capabilities,
|
|
Lua = {
|
|
runtime = {
|
|
version = 'LuaJIT',
|
|
},
|
|
diagnostics = {
|
|
-- Get the language server to recognize the `vim` global
|
|
globals = {'vim'},
|
|
},
|
|
workspace = {
|
|
-- Make the server aware of Neovim runtime files
|
|
library = vim.api.nvim_get_runtime_file("", true),
|
|
},
|
|
telemetry = {
|
|
enable = false,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
require("formatter").setup {
|
|
filetype = {
|
|
["*"] = {
|
|
-- "formatter.filetypes.any" defines default configurations for any
|
|
-- filetype
|
|
require("formatter.filetypes.any").remove_trailing_whitespace
|
|
}
|
|
}
|
|
}
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
|
highlight = {
|
|
enable = true,
|
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
-- Instead of true it can also be a list of languages
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
}
|
|
|
|
require('gitsigns').setup()
|
|
require('lualine').setup {
|
|
options = {
|
|
theme = 'dracula',
|
|
globalstatus = true
|
|
}
|
|
}
|
|
require("neo-tree").setup({
|
|
close_if_last_window = true,
|
|
window = {
|
|
width = 30,
|
|
},
|
|
filesystem = {
|
|
filtered_items = {
|
|
visible = false, -- when true, they will just be displayed differently than normal items
|
|
hide_dotfiles = false,
|
|
hide_gitignored = true,
|
|
hide_by_name = {},
|
|
hide_by_pattern = {},
|
|
always_show = {},
|
|
never_show = {},
|
|
never_show_by_pattern = {},
|
|
},
|
|
},
|
|
follow_current_file = {
|
|
enabled = true,
|
|
leave_dirs_open = true,
|
|
}
|
|
})
|
|
require('nvim-autopairs').setup()
|
|
require('todo-comments').setup()
|
|
require("scrollbar").setup()
|