style(vim): re-sort plugins

This commit is contained in:
buffet 2023-01-17 09:53:56 +01:00
parent ffa8b048db
commit 509d45ed53

View file

@ -187,18 +187,6 @@
''; '';
} }
{
plugin = lspsaga-nvim;
config = ''
lua require 'lspsaga'.init_lsp_saga()
nnoremap <silent> ${leader}a :Lspsaga code_action<cr>
nnoremap <silent> ${leader}r :Lspsaga rename<cr>
nnoremap <silent> gd :lua vim.lsp.buf.definition()<cr>
nnoremap <silent> gD :lua vim.lsp.buf.declaration()<cr>
'';
}
{ {
plugin = kanagawa-nvim; plugin = kanagawa-nvim;
config = '' config = ''
@ -215,6 +203,18 @@
''; '';
} }
{
plugin = lspsaga-nvim;
config = ''
lua require 'lspsaga'.init_lsp_saga()
nnoremap <silent> ${leader}a :Lspsaga code_action<cr>
nnoremap <silent> ${leader}r :Lspsaga rename<cr>
nnoremap <silent> gd :lua vim.lsp.buf.definition()<cr>
nnoremap <silent> gD :lua vim.lsp.buf.declaration()<cr>
'';
}
{ {
plugin = nvim-autopairs; plugin = nvim-autopairs;
config = "lua require 'nvim-autopairs'.setup {}"; config = "lua require 'nvim-autopairs'.setup {}";
@ -263,77 +263,6 @@
''; '';
} }
{
plugin = nvim-hlslens;
config = ''
lua require 'hlslens'.setup {}
'';
}
{
plugin = nvim-lspconfig;
config = let
configure = srv: ''
lspconfig.${srv}.setup {
capabilities = caps,
}
'';
servers = [
"clangd"
"gopls"
"rust_analyzer"
];
serverConfigs = lib.strings.concatStringsSep "\n" (builtins.map configure servers);
in ''
lua <<EOF
local lspconfig = require 'lspconfig'
local caps = require 'cmp_nvim_lsp'.default_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
${serverConfigs}
EOF
'';
}
{
plugin = nvim-scrollbar;
config = ''
lua <<EOF
require 'scrollbar'.setup {
show_in_active_only = true,
handlers = {
search = true,
},
}
EOF
'';
}
{
plugin = rust-tools-nvim;
config = ''
lua require 'rust-tools'.setup {}
'';
}
{
plugin = telescope-nvim;
config = ''
nnoremap <silent> ${leader}f :Telescope find_files<cr>
nnoremap <silent> ${leader}F :Telescope find_files hidden=true no_ignore=true<cr>
nnoremap <silent> ${leader}g :Telescope live_grep<cr>
nnoremap <silent> ${leader}b :Telescope buffers<cr>
nnoremap <silent> ${leader}: :Telescope commands<cr>
'';
}
{
plugin = trouble-nvim;
config = ''
nnoremap <silent> ${leader}t :TroubleToggle<cr>
'';
}
{ {
plugin = nvim-dap; plugin = nvim-dap;
config = '' config = ''
@ -391,6 +320,52 @@
''; '';
} }
{
plugin = nvim-hlslens;
config = ''
lua require 'hlslens'.setup {}
'';
}
{
plugin = nvim-lspconfig;
config = let
configure = srv: ''
lspconfig.${srv}.setup {
capabilities = caps,
}
'';
servers = [
"clangd"
"gopls"
"rust_analyzer"
];
serverConfigs = lib.strings.concatStringsSep "\n" (builtins.map configure servers);
in ''
lua <<EOF
local lspconfig = require 'lspconfig'
local caps = require 'cmp_nvim_lsp'.default_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
${serverConfigs}
EOF
'';
}
{
plugin = nvim-scrollbar;
config = ''
lua <<EOF
require 'scrollbar'.setup {
show_in_active_only = true,
handlers = {
search = true,
},
}
EOF
'';
}
{ {
plugin = nvim-treesitter.withPlugins (plugins: plugin = nvim-treesitter.withPlugins (plugins:
with plugins; [ with plugins; [
@ -444,6 +419,31 @@
''; '';
} }
{
plugin = rust-tools-nvim;
config = ''
lua require 'rust-tools'.setup {}
'';
}
{
plugin = telescope-nvim;
config = ''
nnoremap <silent> ${leader}f :Telescope find_files<cr>
nnoremap <silent> ${leader}F :Telescope find_files hidden=true no_ignore=true<cr>
nnoremap <silent> ${leader}g :Telescope live_grep<cr>
nnoremap <silent> ${leader}b :Telescope buffers<cr>
nnoremap <silent> ${leader}: :Telescope commands<cr>
'';
}
{
plugin = trouble-nvim;
config = ''
nnoremap <silent> ${leader}t :TroubleToggle<cr>
'';
}
{ {
plugin = vim-vsnip; plugin = vim-vsnip;
config = '' config = ''