nvim: lots of random lsps and coloring configuration

This commit is contained in:
2025-06-20 19:28:33 +03:00
parent 842859344e
commit c462171b4f
8 changed files with 87 additions and 48 deletions

View File

@ -30,6 +30,6 @@ vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHo
vim.api.nvim_create_autocmd("TextYankPost", {
pattern = "*",
callback = function()
require("vim.highlight").on_yank({ "IncSearch", 1000 })
vim.highlight.on_yank({ "IncSearch", 1000 })
end,
})

View File

@ -1,5 +1,8 @@
return {
"catppuccin/nvim",
name = "catppuccin",
config = function()
pcall(vim.cmd, "colorscheme catppuccin-macchiato")
end,
priority = 1000,
}

View File

@ -11,7 +11,7 @@ return {
},
go = {
require("formatter.filetypes.go").gofumpt,
require("formatter.filetypes.go").goimports_reviser,
-- require("formatter.filetypes.go").goimports_reviser,
},
json = {
require("formatter.filetypes.json").jq,
@ -40,6 +40,21 @@ return {
yaml = {
require("formatter.filetypes.yaml").yamlfmt,
},
elixir = {
require("formatter.filetypes.elixir").mixformat,
},
gleam = {
function()
return {
exe = "gleam",
args = {
"format",
"--stdin",
},
stdin = true,
}
end,
},
},
})
end,

View File

@ -0,0 +1,7 @@
return {
"ellisonleao/gruvbox.nvim",
-- config = function()
-- pcall(vim.cmd, "colorscheme gruvbox")
-- end,
priority = 1000,
}

View File

@ -0,0 +1,7 @@
return {
"3rd/image.nvim",
build = false, -- so that it doesn't build the rock https://github.com/3rd/image.nvim/issues/91#issuecomment-2453430239
opts = {
processor = "magick_cli",
}
}

View File

@ -3,11 +3,13 @@ return {
"neovim/nvim-lspconfig",
config = function()
local lsp = require("lspconfig")
lsp.pylsp.setup({})
-- lsp.pylsp.setup({})
lsp.pyright.setup({})
lsp.gopls.setup({})
lsp.rust_analyzer.setup({})
lsp.clangd.setup({})
lsp.ts_ls.setup({})
lsp.gleam.setup({})
lsp.lua_ls.setup({
settings = {
Lua = {
@ -27,7 +29,7 @@ return {
},
})
lsp.helm_ls.setup({
filetypes= { "helm", "yaml" },
filetypes = { "helm", "yaml" },
})
end,
},

View File

@ -3,8 +3,8 @@ return {
dependencies = {
{ "mbrea-c/wal-colors.nvim" },
},
config = function()
pcall(vim.cmd, "colorscheme mbc")
end,
-- config = function()
-- pcall(vim.cmd, "colorscheme mbc")
-- end,
priority = 1000,
}