Compare commits
No commits in common. "0bd0090ae82cf84a1fe73e747f4a4b0e641855d1" and "2c749ac32940909d444682a0199b05b1c80357c2" have entirely different histories.
0bd0090ae8
...
2c749ac329
4 changed files with 11 additions and 37 deletions
40
init.lua
40
init.lua
|
|
@ -1,5 +1,3 @@
|
||||||
vim.g.mapleader = " "
|
|
||||||
|
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
|
|
@ -7,9 +5,9 @@ require("mason-lspconfig").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"pylsp",
|
"pylsp",
|
||||||
"clangd",
|
"clangd",
|
||||||
|
"gopls",
|
||||||
|
-- "dcm",
|
||||||
"ols",
|
"ols",
|
||||||
"ts_ls",
|
|
||||||
"vue_ls"
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -26,31 +24,13 @@ vim.cmd([[colorscheme everforest]])
|
||||||
|
|
||||||
-- My custom keybinds
|
-- 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><space>x", "<cmd>source %<CR>") -- Can't do this with lazy.nvim apparently
|
||||||
vim.keymap.set("n", "<Leader>x", ":.lua<CR>")
|
vim.keymap.set("n", "<space>x", ":.lua<CR>")
|
||||||
vim.keymap.set("v", "<Leader>x", ":lua<CR>")
|
vim.keymap.set("v", "<space>x", ":lua<CR>")
|
||||||
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
|
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})
|
|
||||||
|
|
||||||
-- Harpoon Setup and Settings
|
local lspconfig = require('lspconfig')
|
||||||
local harpoon = require("harpoon")
|
lspconfig.pylsp.setup{}
|
||||||
harpoon:setup()
|
lspconfig.clangd.setup{}
|
||||||
vim.keymap.set("n", "<Leader>n", function() harpoon:list():add() end)
|
lspconfig.gopls.setup{}
|
||||||
vim.keymap.set("n", "<Leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
--lspconfig.dcm.setup{}
|
||||||
vim.keymap.set("n", "<Leader>d", function() harpoon:list():remove() end)
|
lspconfig.ols.setup{}
|
||||||
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")
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
return { 'glacambre/firenvim', build = ":call firenvim#install(0)" }
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
return {{
|
|
||||||
"ThePrimeagen/harpoon",
|
|
||||||
branch = "harpoon2",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" }
|
|
||||||
}}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue