add rust lsp support and cleanup #3

Merged
softinio merged 1 commit from add-rust into main 2024-03-23 09:44:45 -07:00
2 changed files with 11 additions and 40 deletions
Showing only changes of commit 11315a02af - Show all commits

View file

@ -60,12 +60,12 @@ return {
local servers = {
bashls = {
bashIde = {
globPattern = "*@(.sh|.inc|.bash|.command)"
}
globPattern = "*@(.sh|.inc|.bash|.command)",
},
},
lua_ls = {
Lua = {
diagnostics = { globals = { 'vim' } },
diagnostics = { globals = { "vim" } },
workspace = { checkThirdParty = false },
telemetry = { enable = false },
},
@ -79,11 +79,16 @@ return {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
useLibraryCodeForTypes = true,
},
},
},
rnix = {},
rust_analyzer = {
diagnostics = {
enable = true,
},
},
tsserver = {},
yamlls = {},
}

View file

@ -1,34 +0,0 @@
return {
"nvim-neorg/neorg",
lazy = false,
build = ":Neorg sync-parsers",
dependencies = { "nvim-lua/plenary.nvim" },
keys = {
{ "<leader>ni", "<cmd>Neorg index<cr>", desc = "Neorg index" },
{ "<leader>nw", "<cmd>Neorg generate-workspace-summary<cr>", desc = "Neorg generate Workspace Summary" },
{ "<leader>njt", "<cmd>Neorg journal today<cr>", desc = "Neorg Journal Today" },
{ "<leader>njT", "<cmd>Neorg journal template<cr>", desc = "Neorg Journal Template" },
},
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.summary"] = {},
["core.concealer"] = {
config = {
icon_preset = "diamond",
},
},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/notes",
til = "~/til",
},
default_workspace = "notes",
},
},
},
}
end,
}