Compare commits

..

5 Commits

Author SHA1 Message Date
dev a1519b7a51 Add qml 2026-08-08 11:21:33 +05:30
dev 631db6780e add colorcolumn 2026-07-08 15:10:26 +05:30
dev 69bd30d1fc Fix lsp configuration 2026-06-30 19:38:07 +05:30
cool-mist a0e8d4b2e1 Done 2026-06-21 23:56:04 +05:30
cool-mist 17f6c13632 Done 2026-06-21 23:39:17 +05:30
+15 -19
View File
@@ -18,6 +18,7 @@ O.signcolumn = 'yes:1'
O.ignorecase = true
O.smartcase = true
O.fillchars = { eob = " " }
O.colorcolumn = "120"
-- Maintain a history of undos so that I can undo even after restart
O.undofile = true
@@ -337,8 +338,15 @@ lazy.setup({
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
config = function()
require('lspconfig').lua_ls.setup({})
require("lspconfig").powershell_es.setup({})
V.lsp.config('lua_ls', {})
V.lsp.enable('lua_ls')
V.lsp.config('qmlls', {
cmd = { "qmlls6" },
filetypes = { "qml", "qmljs" },
single_file_support = true,
})
V.lsp.enable('qmlls')
-- The default borders from nvim-lspconfig, which is what is used to configure the lsp servers
-- in this configuration, are not visible. This is a workaround to update the borders key in the
@@ -359,24 +367,11 @@ lazy.setup({
}
-- RUST --
local handlers = {
["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }),
["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }),
}
require("lspconfig").rust_analyzer.setup({ handlers = handlers })
V.lsp.config('rust_analyzer', {})
V.lsp.enable('rust_analyzer')
-- C# --
local omnisharp_extended = require("omnisharp_extended") -- decompilation support
local omnisharp_handlers = {
["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }),
["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }),
["textDocument/definition"] = omnisharp_extended.definition_handler,
["textDocument/references"] = omnisharp_extended.references_handler,
["textDocument/implementation"] = omnisharp_extended.implementation_handler,
}
require("lspconfig").omnisharp.setup({
handlers = omnisharp_handlers,
V.lsp.config('omnisharp', {
enable_editorconfig_support = true,
enable_ms_build_load_projects_on_demand = false,
enable_roslyn_analyzers = true,
@@ -385,6 +380,7 @@ lazy.setup({
sdk_include_prereleases = true,
analyze_open_documents_only = true,
})
V.lsp.enable('omnisharp')
-- Add default LSP keybindings
V.api.nvim_create_autocmd('LspAttach', {
@@ -605,7 +601,7 @@ lazy.setup({
-- Treesitter
{
"nvim-treesitter/nvim-treesitter",
branch = 'master',
branch = 'main',
lazy = false,
build = ":TSUpdate",
opts_extend = { "ensure_installed" },