Added some more stuff to neovim lua config

This commit is contained in:
Uttarayan Mondal
2021-05-13 20:34:42 +05:30
parent e8189ba975
commit 76f211a525
8 changed files with 142 additions and 50 deletions

View File

@@ -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"

View File

@@ -0,0 +1,6 @@
local lspconfig = require'lspconfig'
lspconfig.pyls.setup{
cmd = { "pyls" },
filetypes = { "python" },
}

View File

@@ -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"
}
}
}