76 lines
1.5 KiB
Lua
76 lines
1.5 KiB
Lua
return {
|
|
{
|
|
"stevearc/conform.nvim",
|
|
-- event = 'BufWritePre', -- uncomment for format on save
|
|
opts = require "configs.conform",
|
|
},
|
|
|
|
-- These are some examples, uncomment them if you want to see them work!
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require "configs.lspconfig"
|
|
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" },
|
|
|
|
-- {
|
|
-- "nvim-treesitter/nvim-treesitter",
|
|
-- opts = {
|
|
-- ensure_installed = {
|
|
-- "vim", "lua", "vimdoc",
|
|
-- "html", "css"
|
|
-- },
|
|
-- },
|
|
-- },
|
|
}
|