chore(neovim): style changes

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-11 23:39:16 -03:00
parent 7025b5fe97
commit c848b78eda
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
5 changed files with 38 additions and 11 deletions

View file

@ -0,0 +1,14 @@
{
"neoconf": {
"plugins": {
"lua_ls": {
"enabled": true
}
}
},
"lspconfig": {
"lua_ls": {
"Lua.completion.callSnippet": "Replace"
}
}
}

View file

@ -0,0 +1,5 @@
quote_style = "AutoPreferDouble"
call_parentheses = "None"
[sort_requires]
enabled = true

View file

@ -69,12 +69,14 @@ in
# Needed by LuaSnip # Needed by LuaSnip
luajitPackages.jsregexp luajitPackages.jsregexp
# Treesitter
gcc # For compiling languages
# CMAKE # CMAKE
neocmakelsp neocmakelsp
# C/C++ # C/C++
clang-tools clang-tools
gcc # Needed for treesitter
vscode-extensions.ms-vscode.cpptools vscode-extensions.ms-vscode.cpptools
# C# # C#

View file

@ -10,16 +10,16 @@ return {
opts = { opts = {
-- Configuration table of features provided by AstroLSP -- Configuration table of features provided by AstroLSP
features = { features = {
autoformat = true, -- enable or disable auto formatting on start autoformat = true, -- enable or disable auto formatting on start
codelens = true, -- enable/disable codelens refresh on start codelens = true, -- enable/disable codelens refresh on start
inlay_hints = false, -- enable/disable inlay hints on start inlay_hints = false, -- enable/disable inlay hints on start
semantic_tokens = true, -- enable/disable semantic token highlighting semantic_tokens = true, -- enable/disable semantic token highlighting
}, },
-- customize lsp formatting options -- customize lsp formatting options
formatting = { formatting = {
-- control auto formatting on save -- control auto formatting on save
format_on_save = { format_on_save = {
enabled = true, -- enable or disable format on save globally enabled = true, -- enable or disable format on save globally
allow_filetypes = { -- enable format on save for specified filetypes only allow_filetypes = { -- enable format on save for specified filetypes only
-- "go", -- "go",
"c", "c",
@ -76,6 +76,7 @@ return {
---@diagnostic disable: missing-fields ---@diagnostic disable: missing-fields
config = { config = {
-- clangd = { capabilities = { offsetEncoding = "utf-8" } }, -- clangd = { capabilities = { offsetEncoding = "utf-8" } },
---@type lspconfig.Config
nixd = { nixd = {
settings = { settings = {
nixd = { nixd = {
@ -94,6 +95,7 @@ return {
}, },
}, },
}, },
---@type lspconfig.Config
vtsls = { vtsls = {
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }, filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
settings = { settings = {
@ -112,6 +114,7 @@ return {
}, },
}, },
}, },
---@type lspconfig.Config
rust_analyzer = { rust_analyzer = {
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
@ -123,6 +126,10 @@ return {
}, },
}, },
}, },
---@type lspconfig.Config
omnisharp = {
cmd = { "OmniSharp" },
},
}, },
-- customize how language servers are attached -- customize how language servers are attached
handlers = { handlers = {

View file

@ -85,7 +85,7 @@ return {
{ {
"xiyaowong/transparent.nvim", "xiyaowong/transparent.nvim",
opts = function(_, opts) opts = function(_, opts)
local transparent = require("transparent") local transparent = require "transparent"
opts.groups = { opts.groups = {
"Comment", "Comment",
@ -150,9 +150,9 @@ return {
"WinSeparator", "WinSeparator",
} }
transparent.clear_prefix("BufferLine") transparent.clear_prefix "BufferLine"
transparent.clear_prefix("Diagnostic") transparent.clear_prefix "Diagnostic"
transparent.clear_prefix("NvimTree") transparent.clear_prefix "NvimTree"
end, end,
}, },
@ -160,10 +160,9 @@ return {
{ {
"jmbuhr/otter.nvim", "jmbuhr/otter.nvim",
dependencies = { dependencies = {
"hrsh7th/nvim-cmp",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
}, },
opts = {},
}, },
-- Adds highlighting and custom commands for ledger files -- Adds highlighting and custom commands for ledger files