Compare commits

...

2 commits

Author SHA1 Message Date
rocketdebris
0bd0090ae8 Updated config away from deprections for lsp. Added JS, Vue LSPs. 2025-10-27 16:48:05 -04:00
rocketdebris
baa2e07b0f Updated nvim configuration including harpoon and firenvim 2025-09-16 09:48:21 -04:00
4 changed files with 37 additions and 11 deletions

View file

@ -1,3 +1,5 @@
vim.g.mapleader = " "
require("config.lazy")
require("mason").setup()
@ -5,9 +7,9 @@ require("mason-lspconfig").setup({
ensure_installed = {
"pylsp",
"clangd",
"gopls",
-- "dcm",
"ols",
"ts_ls",
"vue_ls"
},
})
@ -24,13 +26,31 @@ vim.cmd([[colorscheme everforest]])
-- My custom keybinds
-- vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>") -- Can't do this with lazy.nvim apparently
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
vim.keymap.set("n", "<Leader>x", ":.lua<CR>")
vim.keymap.set("v", "<Leader>x", ":lua<CR>")
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
local lspconfig = require('lspconfig')
lspconfig.pylsp.setup{}
lspconfig.clangd.setup{}
lspconfig.gopls.setup{}
--lspconfig.dcm.setup{}
lspconfig.ols.setup{}
-- Harpoon Setup and Settings
local harpoon = require("harpoon")
harpoon:setup()
vim.keymap.set("n", "<Leader>n", function() harpoon:list():add() end)
vim.keymap.set("n", "<Leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<Leader>d", function() harpoon:list():remove() end)
vim.keymap.set("n", "<Leader>j", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<Leader>k", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<Leader>l", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<Leader>;", function() harpoon:list():select(4) end)
--local lspconfig = require('lspconfig')
local lspconfig = vim.lsp.config
local lspenable = vim.lsp.enable
lspconfig("ts_ls", {
filetypes = {'js', 'ts', 'vue'},
})
lspenable("pylsp")
lspenable("clangd")
lspenable("ols")
lspenable("ts_ls")
lspenable("vue_ls")

View file

@ -11,4 +11,4 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")
require("lazy").setup("plugins")

1
lua/plugins/firenvim.lua Normal file
View file

@ -0,0 +1 @@
return { 'glacambre/firenvim', build = ":call firenvim#install(0)" }

5
lua/plugins/harpoon.lua Normal file
View file

@ -0,0 +1,5 @@
return {{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }
}}