Added some more stuff to neovim lua config
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
require("lsp.rust-analyzer")
|
||||
require("lsp.lua-language-server")
|
||||
require("lsp.pyls")
|
||||
|
||||
-- Set completeopt to have a better completion experience
|
||||
vim.o.completeopt= "menuone,noinsert,noselect"
|
||||
|
||||
6
config/nvim/lua/lsp/pyls.lua
Normal file
6
config/nvim/lua/lsp/pyls.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
local lspconfig = require'lspconfig'
|
||||
|
||||
lspconfig.pyls.setup{
|
||||
cmd = { "pyls" },
|
||||
filetypes = { "python" },
|
||||
}
|
||||
@@ -11,10 +11,11 @@ lspconfig.rust_analyzer.setup{
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy";
|
||||
command = "clippy",
|
||||
},
|
||||
cargo = {
|
||||
allFeatures = true;
|
||||
allFeatures = true,
|
||||
-- target = "aarch64-linux-android"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user