Compare commits

..

No commits in common. "bc4d797cffdda6047481e35f36b210bf722c99d4" and "e0831aaedc9733e06e0b4a33f206b8253e969489" have entirely different histories.

3 changed files with 28 additions and 11 deletions

View file

@ -9,5 +9,3 @@ vim.keymap.set("n", "<leader>otoc", "<cmd>ObsidianTOC<CR>", { silent = true, nor
vim.keymap.set("n", "<leader>ofl", "<cmd>ObsidianFollowLink<CR>", { silent = true, noremap = true, desc="Obsidian: follow link" })
-- Oil keybinds
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
-- Easy escape from terminal
vim.keymap.set("t", "<esc><esc>", "<c-\\><c-n>")

View file

@ -18,6 +18,32 @@ return {
-- import cmp-nvim-lsp plugin
local cmp_nvim_lsp = require("cmp_nvim_lsp")
-- Ruff setup
lspconfig.ruff.setup({
init_options = {
settings = {
-- Ruff language server settings go here
logLevel = "debug",
},
},
})
-- Pyright setup
lspconfig.pyright.setup({
settings = {
pyright = {
-- Using Ruff's import organizer
disableOrganizeImports = true,
},
python = {
analysis = {
-- Ignore all files for analysis to exclusively use Ruff for linting
ignore = { "*" },
},
},
},
})
local keymap = vim.keymap -- for conciseness
-- nvim_create_autocmd - used to execute some logic automaticaly on a specific event
@ -88,15 +114,6 @@ return {
capabilities = capabilities,
})
end,
["clangd"] = function()
lspconfig["clangd"].setup({
filetypes = { "c" },
cmd = {
"clangd",
"--offset-encoding=utf-16",
},
})
end,
["lua_ls"] = function()
-- configure lua server (with special settings)
lspconfig["lua_ls"].setup({

View file

@ -35,6 +35,7 @@ return {
mason_tool_installer.setup({
ensure_installed = {
"rust-analyzer",
"golines",
"goimports-reviser",
"prettier", -- prettier formatter
@ -43,6 +44,7 @@ return {
"gofumpt",
-- Astra settings for 3.7 Python
-- NOTE: On Astra you need to install Ruff as standalone package
"eslint_d",
},
})
end,