changed bash configs

This commit is contained in:
2025-11-03 18:51:49 +03:00
parent d8fd8fce36
commit 93f693874e
6 changed files with 29 additions and 11 deletions

View File

@ -27,7 +27,7 @@ input {
kb_layout = us, ru
kb_variant =
kb_model =
kb_options = grp:alt_shift_toggle
kb_options = grp:alt_shift_toggle, caps:escape
kb_rules =
follow_mouse = 1

View File

@ -25,6 +25,11 @@ function export.get_python_path()
return path.join(vim.env.VIRTUAL_ENV, "bin", "python")
end
local match = vim.fn.glob(path.join(workspace, ".venv"))
if match ~= "" then
return path.join(workspace, ".venv", "bin", "python")
end
-- Find and use virtualenv via poetry in workspace directory.
while workspace ~= "" do
if workspace ~= "" then

View File

@ -21,24 +21,30 @@ return {
local python_path = python_utils.get_python_path()
vim.lsp.config("ruff", {
root_markers = { ".git" },
settings = { interpreter = python_path },
})
vim.lsp.enable("ruff")
vim.lsp.config("basedpyright", {
root_markers = { ".git" },
python = { pythonPath = python_path },
settings = {
python = { pythonPath = python_path },
basedpyright = {
analysis = {
typeCheckingMode = "standard",
diagnosticSeverityOverrides = {
reportUnusedImport = "none",
reportMissingImports = "none",
},
},
},
},
})
vim.lsp.enable("basedpyright")
vim.lsp.config("bashls", {
cmd = { "bash-language-server", "start" },
filetypes = { "bash", "sh" },
})
vim.lsp.enable("bashls")
-- vim.lsp.config("bashls", {
-- cmd = { "bash-language-server", "start" },
-- filetypes = { "bash", "sh" },
-- })
-- vim.lsp.enable("bashls")
end,
}