Compare commits

...

2 Commits

Author SHA1 Message Date
c84564fed0 Use tabs instead of spaces 2024-11-19 19:59:56 +01:00
299b128d5a Add some language servers 2024-11-19 16:46:03 +01:00
5 changed files with 38 additions and 5 deletions

View File

@@ -8,11 +8,11 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "023f795dbcf32d4351b6a9ed2e613d471b5bb812" },
"core.nvim": { "branch": "main", "commit": "26ada48758e73ff3763ac134a9a0da320a7762e4" },
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"gitsigns.nvim": { "branch": "main", "commit": "ac5aba6dce8c06ea22bea2c9016f51a2dbf90dc7" },
"indent-blankline.nvim": { "branch": "master", "commit": "7871a88056f7144defca9c931e311a3134c5d509" },
"lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "43894adcf10bb1190c2184bd7c1750e8ea2b3dce" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"menu": { "branch": "main", "commit": "657bfc91382c0928453d9a4d0a10ec92db5de2bb" },
"minty": { "branch": "main", "commit": "a3d69bd63fc98f640815f94b797bf978e9193022" },

View File

@@ -40,7 +40,6 @@ return {
"optwin",
"compiler",
"bugreport",
"ftplugin",
},
},
},

View File

@@ -76,7 +76,7 @@ local opt = {
wrapmargin = 0, -- No margin for wrapping
tabstop = 4, -- 2 spaces per tab
shiftwidth = 0, -- Match tabstop
expandtab = true, -- Use spaces for tabs
expandtab = false, -- Use spaces for tabs
autoindent = true, -- Maintain indent level
-------------------
@@ -119,4 +119,4 @@ end
-- Apply editor options
for k, v in pairs(opt) do
vim.opt[k] = v
end
end

View File

@@ -18,7 +18,37 @@ return {
end,
},
-- Supermaven
{
"neovim/nvim-lspconfig",
dependencies = {
-- Installer for language servers
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
},
config = function()
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = {
"lua_ls", -- Lua
"gopls", -- Go
"tsserver", -- JavaScript/TypeScript
},
})
local lspconfig = require("lspconfig")
-- Lua Language Server
lspconfig.lua_ls.setup {}
-- Go Language Server
lspconfig.gopls.setup {}
-- JavaScript/TypeScript Language Server
lspconfig.tsserver.setup {}
end,
},
-- Supermaven
{
"supermaven-inc/supermaven-nvim",
lazy = false,

View File

@@ -16,6 +16,10 @@ set hlsearch
set foldmethod=indent
set history=1000
set nofoldenable
set autoindent
set tabstop=4
set shiftwidth=4
set noexpandtab
let @q = 'GpA ^['
let @w = 'Gpo^['