(T)im's N(ix) Flake, Multi-Host Configurations for all of my machines! 74k1.sh/
nixos nix
0
fork

Configure Feed

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

fix(neovim): some errors while loading neovim

74k1 e09a6213 1d018379

+29 -25
+19 -19
modules/home-manager/shell/neovim/cfg/cmp.lua
··· 32 32 }, 33 33 }, 34 34 }), 35 - cmdline('/', { 36 - mapping = cmp.mapping.preset.cmdline(), 37 - sources = { 38 - { name = 'buffer' } 39 - } 40 - }), 41 - cmdline(':', { 42 - mapping = cmp.mapping.preset.cmdline(), 43 - sources = cmp.config.sources({ 44 - { name = 'path' } 45 - }, { 46 - { 47 - name = 'cmdline', 48 - option = { 49 - ignore_cmds = { 'Man', '!' } 50 - } 51 - } 52 - }) 53 - }) 35 + -- cmdline('/', { 36 + -- mapping = cmp.mapping.preset.cmdline(), 37 + -- sources = { 38 + -- { name = 'buffer' } 39 + -- } 40 + -- }), 41 + -- cmdline(':', { 42 + -- mapping = cmp.mapping.preset.cmdline(), 43 + -- sources = cmp.config.sources({ 44 + -- { name = 'path' } 45 + -- }, { 46 + -- { 47 + -- name = 'cmdline', 48 + -- option = { 49 + -- ignore_cmds = { 'Man', '!' } 50 + -- } 51 + -- } 52 + -- }) 53 + -- }) 54 54 }
+10 -6
modules/home-manager/shell/neovim/cfg/lspconfig.lua
··· 43 43 } 44 44 ) 45 45 46 - require("lspconfig").html.setup({ 46 + vim.lsp.config('html', { 47 47 capabilities = lsp_capabilities, 48 48 cmd = { "vscode-html-language-server", "--stdio" }, 49 49 init_options = { ··· 57 57 } 58 58 }, 59 59 }) 60 + vim.lsp.enable('html') 60 61 61 - require("lspconfig").bashls.setup({}) 62 + vim.lsp.config('bashls',{}) 63 + vim.lsp.enable('bashls') 62 64 63 - require("lspconfig").nil_ls.setup({ 65 + vim.lsp.config('nil_ls',{ 64 66 cmd = { "nil" }, 65 67 filetypes = { "nix" }, 66 - root_dir = root_pattern("flake.nix", ".git"), 67 68 single_file_support = true, 68 69 settings = { 69 70 ["nil"] = { ··· 79 80 }, 80 81 }, 81 82 }) 83 + vim.lsp.enable('nil_ls') 82 84 83 - require("lspconfig").rust_analyzer.setup({ 85 + vim.lsp.config('rust_analyzer',{ 84 86 on_attach = function(client, bufnr) 85 87 vim.lsp.inlay_hint.enable(true, { bufnr = bufnr }) 86 88 end, ··· 103 105 } 104 106 } 105 107 }) 108 + vim.lsp.enable('rust_analyzer') 106 109 107 - require("lspconfig").tinymist.setup({ 110 + vim.lsp.config('tinymist', { 108 111 settings = { 109 112 formatterMode = "typstyle", 110 113 exportPdf = "onType", 111 114 semanticTokens = "disable" 112 115 } 113 116 }) 117 + vim.lsp.enable('tinymist')