From 509d45ed53b49053e4af80ed92fb23084d0f96d3 Mon Sep 17 00:00:00 2001 From: buffet Date: Tue, 17 Jan 2023 09:53:56 +0100 Subject: [PATCH] style(vim): re-sort plugins --- programs/nvim.nix | 166 +++++++++++++++++++++++----------------------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/programs/nvim.nix b/programs/nvim.nix index d4a0f59..6e0761a 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -187,18 +187,6 @@ ''; } - { - plugin = lspsaga-nvim; - config = '' - lua require 'lspsaga'.init_lsp_saga() - - nnoremap ${leader}a :Lspsaga code_action - nnoremap ${leader}r :Lspsaga rename - nnoremap gd :lua vim.lsp.buf.definition() - nnoremap gD :lua vim.lsp.buf.declaration() - ''; - } - { plugin = kanagawa-nvim; config = '' @@ -215,6 +203,18 @@ ''; } + { + plugin = lspsaga-nvim; + config = '' + lua require 'lspsaga'.init_lsp_saga() + + nnoremap ${leader}a :Lspsaga code_action + nnoremap ${leader}r :Lspsaga rename + nnoremap gd :lua vim.lsp.buf.definition() + nnoremap gD :lua vim.lsp.buf.declaration() + ''; + } + { plugin = nvim-autopairs; 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 < ${leader}f :Telescope find_files - nnoremap ${leader}F :Telescope find_files hidden=true no_ignore=true - nnoremap ${leader}g :Telescope live_grep - nnoremap ${leader}b :Telescope buffers - nnoremap ${leader}: :Telescope commands - ''; - } - - { - plugin = trouble-nvim; - config = '' - nnoremap ${leader}t :TroubleToggle - ''; - } - { plugin = nvim-dap; 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 < ${leader}f :Telescope find_files + nnoremap ${leader}F :Telescope find_files hidden=true no_ignore=true + nnoremap ${leader}g :Telescope live_grep + nnoremap ${leader}b :Telescope buffers + nnoremap ${leader}: :Telescope commands + ''; + } + + { + plugin = trouble-nvim; + config = '' + nnoremap ${leader}t :TroubleToggle + ''; + } + { plugin = vim-vsnip; config = ''