summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-20 18:23:32 +0200
committerKyren223 <Kyren223@proton.me>2024-11-20 18:23:32 +0200
commit621e6f4bf444bad28002b6dece3971e0d9a5b5d3 (patch)
treee485bb770031a44252190c84134470d09f5b6fdd /.config/nvim/lua/custom
parent9a353362bbc122349ad1ce2722282cc6f929adda (diff)
Fixed git pager issues and lua lsp and formatting works
Diffstat (limited to '.config/nvim/lua/custom')
-rw-r--r--.config/nvim/lua/custom/config/language-servers.lua60
-rw-r--r--.config/nvim/lua/custom/plugins/mason.lua4
2 files changed, 32 insertions, 32 deletions
diff --git a/.config/nvim/lua/custom/config/language-servers.lua b/.config/nvim/lua/custom/config/language-servers.lua
index 5e62067..0f07d95 100644
--- a/.config/nvim/lua/custom/config/language-servers.lua
+++ b/.config/nvim/lua/custom/config/language-servers.lua
@@ -1,18 +1,18 @@
-- NOTE: a table or true to enable, false to disable
return {
- -- lua_ls = {
- -- settings = {
- -- diagnostics = { globals = { 'vim' } },
- -- telemetry = { enabled = false },
- -- hint = { enable = true },
- -- workspace = {
- -- library = {
- -- [vim.fn.expand('$VIMRUNTIME/lua')] = true,
- -- [vim.fn.stdpath('config') .. '/lua'] = true,
- -- },
- -- },
- -- },
- -- }, -- lua
+ lua_ls = {
+ settings = {
+ diagnostics = { globals = { 'vim' } },
+ telemetry = { enabled = false },
+ hint = { enable = true },
+ workspace = {
+ library = {
+ [vim.fn.expand('$VIMRUNTIME/lua')] = true,
+ [vim.fn.stdpath('config') .. '/lua'] = true,
+ },
+ },
+ },
+ }, -- lua
-- clangd = {
-- cmd = {
-- 'clangd',
@@ -65,7 +65,7 @@ return {
-- ts_ls = true, -- javascript/typescript
-- astro = true, -- astro framework
-- mdx_analyzer = true, -- markdown with JS I think
- -- -- marksman = true, -- Markdown LSP
+ -- marksman = true, -- Markdown LSP
-- markdown_oxide = true, -- Markdown LSP but better
-- gopls = {
-- cmd = { 'gopls' },
@@ -111,20 +111,20 @@ return {
-- },
-- }, -- Go LSP
-- jdtls = true, -- java
- -- -- sqlls = true,
- -- -- sqls = {
- -- -- on_attach = function(client, bufnr)
- -- -- require('sqls').on_attach(client, bufnr)
- -- -- end,
- -- -- settings = {
- -- -- sqls = {
- -- -- connections = {
- -- -- {
- -- -- driver = 'sqlite3',
- -- -- dataSourceName = '/home/kyren/projects/eko/server.db',
- -- -- },
- -- -- },
- -- -- },
- -- -- },
- -- -- },
+ -- sqlls = true,
+ -- sqls = {
+ -- on_attach = function(client, bufnr)
+ -- require('sqls').on_attach(client, bufnr)
+ -- end,
+ -- settings = {
+ -- sqls = {
+ -- connections = {
+ -- {
+ -- driver = 'sqlite3',
+ -- dataSourceName = '/home/kyren/projects/eko/server.db',
+ -- },
+ -- },
+ -- },
+ -- },
+ -- },
}
diff --git a/.config/nvim/lua/custom/plugins/mason.lua b/.config/nvim/lua/custom/plugins/mason.lua
index 8232b88..ca4cb32 100644
--- a/.config/nvim/lua/custom/plugins/mason.lua
+++ b/.config/nvim/lua/custom/plugins/mason.lua
@@ -17,7 +17,7 @@ return {
lazy = false,
opts = {
ensure_installed = {
- -- 'stylua', -- lua formatting
+ 'stylua', -- lua formatting
-- 'clang-format', -- C/C++ formatter
-- 'codelldb', -- C/C++ debugger
-- 'cpplint', -- C/C++ linter
@@ -25,7 +25,7 @@ return {
-- 'isort', -- python formatter for imports
-- 'flake8', -- python linter
-- 'gofumpt', -- go formatter
- -- -- 'golangci-lint', -- go linter
+ -- 'golangci-lint', -- go linter
-- 'prettierd', -- multi-lang formatter
-- 'prettier', -- prettierd but slower, used as a fallback
-- 'jq', -- json formatter