aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/completition/init.lua1
-rw-r--r--lua/alpha/lsp/default.lua1
-rw-r--r--lua/alpha/lsp/servers/python.lua16
3 files changed, 18 insertions, 0 deletions
diff --git a/lua/alpha/completition/init.lua b/lua/alpha/completition/init.lua
index 61a3d1c..9933971 100644
--- a/lua/alpha/completition/init.lua
+++ b/lua/alpha/completition/init.lua
@@ -29,6 +29,7 @@ cmp.setup {
end
end, { "i", "s" }),
["<C-p>"] = cmp.mapping.select_prev_item(),
+ ["<C-l>"] = cmp.mapping.select_next_item(),
["<C-y>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
diff --git a/lua/alpha/lsp/default.lua b/lua/alpha/lsp/default.lua
index b436be5..e4bf24e 100644
--- a/lua/alpha/lsp/default.lua
+++ b/lua/alpha/lsp/default.lua
@@ -17,6 +17,7 @@ return {
tsserver = { enable = true },
volar = { enable = true },
texlab = { enable = true, filetypes = {"tex", "bib"} },
+ pyright = { enable = true, filetypes = {"python"} },
kotlin_language_server = { enable = true, filetypes = {"kotlin"}, root_dir = require("lspconfig.util").root_pattern("build.gradle.kts", "pom.xml", ".git") },
},
default_options = function (options)
diff --git a/lua/alpha/lsp/servers/python.lua b/lua/alpha/lsp/servers/python.lua
new file mode 100644
index 0000000..6cdbf9e
--- /dev/null
+++ b/lua/alpha/lsp/servers/python.lua
@@ -0,0 +1,16 @@
+local lsp_attach = require "alpha.lsp.attach"
+local lsp_flags = require "alpha.lsp.flags"
+return function (ops)
+ return vim.tbl_extend("force", {
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ settings = {
+ ["pyright"] = {
+ disableOrganizeImports = false,
+ disableDiagnostics = false,
+ disableLanguageServices = false,
+ typeCheckingMode = "strict",
+ }
+ }
+ }, ops)
+end