this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ft: install language servers for NeoVim only

+27 -20
-5
modules/nixd.nix
··· 1 - {pkgs, ...}: { 2 - home.packages = [ 3 - pkgs.nixd 4 - ]; 5 - }
+6 -8
modules/nvim.nix
··· 9 9 # Add Fennel to Lua path and require basic implementation 10 10 customRC = '' 11 11 lua << EOF 12 + vim.g.lsp_paths = { 13 + ['lexical'] = "${pkgs.lexical}/bin/lexical", 14 + ['nixd'] = "${pkgs.nixd}/bin/nixd", 15 + ['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp" 16 + } 12 17 package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua" 13 18 require('basic') 14 19 EOF ··· 19 24 nvim-treesitter.withAllGrammars 20 25 vim-nickel 21 26 # XXX: Currently broken 22 - # (neorg.overrideAttrs { 23 - # dependencies = [ 24 - # pkgs.luaPackages.lua-utils-nvim 25 - # plenary-nvim 26 - # nui-nvim 27 - # nvim-nio 28 - # ]; 29 - # }) 27 + # neorg 30 28 # neorg-telescope 31 29 ]; 32 30
-1
users/hauleth.nix
··· 22 22 ../modules/ctags.nix 23 23 ../modules/curl.nix 24 24 ../modules/tools.nix 25 - ../modules/nixd.nix 26 25 ../modules/swiftbar.nix 27 26 ../modules/email.nix 28 27 ../modules/pijul.nix
+18 -6
vim/.config/nvim/fnl/langclient.fnl
··· 1 1 (import-macros {: use} :relude) 2 2 3 - (use nvim {: fun : cmd : opt :buf-map bmap}) 3 + (use nvim {: fun : cmd : opt : map :buf-map bmap}) 4 4 (use picker) 5 5 (use lspconfig) 6 6 (use lspconfig.configs) ··· 25 25 (. client.server_capabilities capability))) 26 26 (when (capable? :declarationProvider) 27 27 (bmap :n :gD #(vim.lsp.buf.declaration))) 28 - (when (capable? :referencesProvider) 29 - (bmap :n :gr #(picker.lsp_references))) 30 28 (when (capable? :documentFormattingProvider) 31 29 (bmap :n :Q #(vim.lsp.buf.format))) 32 30 (when (capable? :documentSymbolProvider) 33 31 (bmap :n :gO #(picker.lsp_document_symbols)))))) 34 32 33 + (map :n :grr #(picker.lsp_references)) 34 + (map :n :gra #(vim.lsp.buf.code_action)) 35 + (map :n :grs #(vim.lsp.buf.rename)) 36 + 35 37 (augroup hauleth-lsp-diagnostics 36 38 (on CursorHold "*" (vim.diagnostic.open_float {:focus false}) nil)) 37 39 ··· 54 56 (setup :rust_analyzer 55 57 {:settings {:rust-analyzer {:files {:excludeDirs [".direnv"]}}}}) 56 58 57 - (setup :lexical 58 - {:cmd [:lexical :start]}) 59 + (setup :lexical { 60 + :autostart true 61 + :cmd [vim.g.lsp_paths.lexical :start] 62 + }) 59 63 60 64 (setup :zls {}) 61 65 62 - (setup :nixd {:autostart true}) 66 + (setup :nixd { 67 + :autostart true 68 + :cmd [vim.g.lsp_paths.nixd] 69 + }) 70 + 71 + (setup :typos_lsp { 72 + :autostart true 73 + :cmd [vim.g.lsp_paths.typos_lsp] 74 + }) 63 75 64 76 (augroup lsp-direnv (on User :DirenvLoaded (cmd.LspStart) nil))
+3
vim/.config/nvim/fnl/plugins.fnl
··· 16 16 (config (fn [pkg pkg-rocks] 17 17 ; Color scheme 18 18 ; (pkg :hauleth/blame.vim) 19 + ; (pkg :zenbones-theme/zenbones.nvim 20 + ; {:requires [:rktjmp/lush.nvim]}) 21 + ; (pkg :shaunsingh/nord.nvim) 19 22 20 23 (pkg :echasnovski/mini.nvim) 21 24