feat: update plugins and rust setup
This commit is contained in:
@@ -1,15 +1,9 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.ui = { theme = 'catppuccin', tabufline= {enabled= false} }
|
M.ui = { theme = 'bearded-arc', tabufline= {enabled= false} }
|
||||||
M.plugins = "custom.plugins"
|
M.plugins = "custom.plugins"
|
||||||
M.mappings = require "custom.configs.mappings"
|
M.mappings = require "custom.configs.mappings"
|
||||||
vim.opt.spelllang = 'en_gb'
|
vim.opt.spelllang = 'en_gb'
|
||||||
vim.opt.spell = true
|
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
|
return M
|
||||||
|
@@ -19,7 +19,7 @@ lspconfig.gopls.setup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lspconfig.tsserver.setup{
|
lspconfig.ts_ls.setup{
|
||||||
on_attach=on_attach,
|
on_attach=on_attach,
|
||||||
capabilities=capabilities,
|
capabilities=capabilities,
|
||||||
init_options = {
|
init_options = {
|
||||||
|
@@ -1,5 +1,12 @@
|
|||||||
local M = {}
|
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 = {
|
M.dap = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
|
@@ -5,7 +5,14 @@ local options = {
|
|||||||
server = {
|
server = {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
},
|
||||||
|
dap = {
|
||||||
|
adapter = {
|
||||||
|
type = "executable",
|
||||||
|
command = "lldb-vscode",
|
||||||
|
name = "rt_lldb",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
@@ -20,6 +20,7 @@ local plugins = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{ "nvim-neotest/nvim-nio" },
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
config=function ()
|
config=function ()
|
||||||
@@ -60,15 +61,9 @@ local plugins = {
|
|||||||
enabled = false
|
enabled = false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"simrat39/rust-tools.nvim",
|
'mrcjkb/rustaceanvim',
|
||||||
ft = "rust",
|
version = '^5', -- Recommended
|
||||||
opts = function ()
|
lazy = false, -- This plugin is already lazy
|
||||||
return require "custom.configs.rust-tools"
|
|
||||||
end,
|
|
||||||
config = function (_, opts)
|
|
||||||
require("rust-tools").setup(opts)
|
|
||||||
end,
|
|
||||||
dependencies = "neovim/nvim-lspconfig"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rust-lang/rust.vim",
|
"rust-lang/rust.vim",
|
||||||
|
Reference in New Issue
Block a user