Split plugins into files by category
This commit is contained in:
63
.config/nvim/lua/plugins/development.lua
Normal file
63
.config/nvim/lua/plugins/development.lua
Normal file
@@ -0,0 +1,63 @@
|
||||
return {
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
{
|
||||
'dense-analysis/ale',
|
||||
config = function()
|
||||
-- Run linters only on save
|
||||
vim.g.ale_lint_on_text_changed = 'never'
|
||||
vim.g.ale_lint_on_insert_leave = 0
|
||||
|
||||
-- Include the linter name (e.g. 'hack' or 'hhast'), code, and message in errors
|
||||
vim.g.ale_echo_msg_format = '[%linter%] %s'
|
||||
vim.g.ale_linters = {
|
||||
hack = {'hack', 'hhast'},
|
||||
haskell = {"hlint"},
|
||||
javascript = {'eslint'},
|
||||
d = {'dmd'},
|
||||
php = {'phpcs', 'phpstan'},
|
||||
ruby = {'rubocop'},
|
||||
cpp = {},
|
||||
asm = {},
|
||||
}
|
||||
vim.g.ale_ruby_rubocop_executable = 'bundle'
|
||||
vim.g.ale_cpp_cc_options = '-std=c++17 -Wall'
|
||||
|
||||
vim.g.ale_open_list = 1
|
||||
vim.g.ale_disable_lsp = 1
|
||||
end
|
||||
},
|
||||
{ -- Tag bar.
|
||||
'liuchengxu/vista.vim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.g.vista_default_executive = 'nvim_lsp'
|
||||
end
|
||||
},
|
||||
{
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
lazy = false,
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {
|
||||
'haskell', 'php', 'lua', 'css', 'dockerfile', 'html', 'javascript', 'markdown', 'ruby', 'vue'
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = true
|
||||
}
|
||||
}
|
||||
end
|
||||
},
|
||||
{
|
||||
'kevinhwang91/nvim-ufo',
|
||||
dependencies = {'kevinhwang91/promise-async'},
|
||||
config = function()
|
||||
vim.wo.foldcolumn = '1'
|
||||
vim.wo.foldlevel = 99 -- feel free to decrease the value
|
||||
vim.wo.foldenable = true
|
||||
|
||||
require('ufo').setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user