rust and python lsp

This commit is contained in:
2026-04-09 16:04:59 +02:00
parent e3572e1f5e
commit a7cb4a0b6c
4 changed files with 88 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
local M = {}
M.base46 = {
theme = "onedark",
theme = "nightowl",
-- hl_override = {
-- Comment = { italic = true },

View File

@@ -13,6 +13,53 @@ return {
end,
},
{
'mrcjkb/rustaceanvim',
version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
ft = "rust",
},
{
'rust-lang/rust.vim',
ft = "rust",
init = function ()
vim.g.rustfmt_autosave = 1
end
},
{
'saecki/crates.nvim',
ft = {"toml"},
config = function()
require("crates").setup {
completion = {
cmp = {
enabled = true
},
},
}
require('cmp').setup.buffer({
sources = { { name = "crates" }}
})
end
},
-- LSP and Mason for Pyright
{
"neovim/nvim-lspconfig",
dependencies = {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
},
config = function()
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = {"pyright"},
})
end,
},
-- test new blink
-- { import = "nvchad.blink.lazyspec" },