1
0

feat: update plugins and rust setup

This commit is contained in:
2025-02-08 17:53:01 +00:00
parent 16606b79d3
commit fa7579dd44
5 changed files with 21 additions and 18 deletions

View File

@@ -1,15 +1,9 @@
local M = {}
M.ui = { theme = 'catppuccin', tabufline= {enabled= false} }
M.ui = { theme = 'bearded-arc', tabufline= {enabled= false} }
M.plugins = "custom.plugins"
M.mappings = require "custom.configs.mappings"
vim.opt.spelllang = 'en_gb'
vim.opt.spell = true
vim.keymap.set("n", "]g", function ()
vim.diagnostic.goto_next()
end)
vim.keymap.set("n", "[g", function ()
vim.diagnostic.goto_prev()
end)
return M

View File

@@ -19,7 +19,7 @@ lspconfig.gopls.setup {
}
}
lspconfig.tsserver.setup{
lspconfig.ts_ls.setup{
on_attach=on_attach,
capabilities=capabilities,
init_options = {

View File

@@ -1,5 +1,12 @@
local M = {}
vim.keymap.set("n", "]g", function ()
vim.diagnostic.goto_next()
end)
vim.keymap.set("n", "[g", function ()
vim.diagnostic.goto_prev()
end)
M.dap = {
plugin = true,
n = {

View File

@@ -5,7 +5,14 @@ local options = {
server = {
on_attach = on_attach,
capabilities = capabilities,
}
},
dap = {
adapter = {
type = "executable",
command = "lldb-vscode",
name = "rt_lldb",
},
},
}
return options

View File

@@ -20,6 +20,7 @@ local plugins = {
}
}
},
{ "nvim-neotest/nvim-nio" },
{
"neovim/nvim-lspconfig",
config=function ()
@@ -60,15 +61,9 @@ local plugins = {
enabled = false
},
{
"simrat39/rust-tools.nvim",
ft = "rust",
opts = function ()
return require "custom.configs.rust-tools"
end,
config = function (_, opts)
require("rust-tools").setup(opts)
end,
dependencies = "neovim/nvim-lspconfig"
'mrcjkb/rustaceanvim',
version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
},
{
"rust-lang/rust.vim",