vim.g.mapleader = " " require("config.lazy") require("mason").setup() require("mason-lspconfig").setup({ ensure_installed = { "pylsp", "clangd", "ols", "ts_ls", "vue_ls" }, }) -- My user settings: vim.opt.number = true vim.opt.relativenumber = true vim.opt.shiftwidth = 4 vim.opt.tabstop = 4 --vim.opt.expandtab = true vim.opt.autoindent = true vim.opt.foldmethod = "indent" vim.opt.foldenable = false vim.cmd([[colorscheme everforest]]) -- My custom keybinds -- vim.keymap.set("n", "x", "source %") -- Can't do this with lazy.nvim apparently vim.keymap.set("n", "x", ":.lua") vim.keymap.set("v", "x", ":lua") vim.api.nvim_set_keymap('t', '', [[]], {noremap = true}) -- vim.api.nvim_set_keymap('i', '', [[]], {noremap = true}) -- Harpoon Setup and Settings local harpoon = require("harpoon") harpoon:setup() vim.keymap.set("n", "n", function() harpoon:list():add() end) vim.keymap.set("n", "h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) vim.keymap.set("n", "d", function() harpoon:list():remove() end) vim.keymap.set("n", "j", function() harpoon:list():select(1) end) vim.keymap.set("n", "k", function() harpoon:list():select(2) end) vim.keymap.set("n", "l", function() harpoon:list():select(3) end) vim.keymap.set("n", ";", 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")