fix: lsp stuff

main
Ayush Mukherjee 3 weeks ago
parent b26c19ba5c
commit a6d7dc4f59

@ -24,6 +24,7 @@ vim.opt.termguicolors = true
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
vim.opt.signcolumn = "yes" vim.opt.signcolumn = "yes"
vim.o.guifont = "Roboto Mono for Powerline:h14" vim.o.guifont = "Roboto Mono for Powerline:h14"
vim.o.winborder = "rounded"
-- temp solution to force sync parsing for treesitter due to flickering -- temp solution to force sync parsing for treesitter due to flickering
-- see gh issue: https://github.com/neovim/neovim/issues/32660 -- see gh issue: https://github.com/neovim/neovim/issues/32660

@ -63,7 +63,7 @@ local function lsp_keymaps(bufnr)
keymap(bufnr, "n", "<leader>lf", "<cmd>lua vim.lsp.buf.format()<cr>", opts) keymap(bufnr, "n", "<leader>lf", "<cmd>lua vim.lsp.buf.format()<cr>", opts)
keymap(bufnr, "n", "<leader>li", "<cmd>LspInfo<cr>", opts) keymap(bufnr, "n", "<leader>li", "<cmd>LspInfo<cr>", opts)
keymap(bufnr, "n", "<leader>lI", "<cmd>LspInstallInfo<cr>", opts) keymap(bufnr, "n", "<leader>lI", "<cmd>LspInstallInfo<cr>", opts)
keymap(bufnr, "n", "<leadr>la", "<cmd>lua vim.lsp.buf.code_action()<cr>", opts) keymap(bufnr, "n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<cr>", opts)
keymap(bufnr, "n", "<leader>lj", "<cmd>lua vim.diagnostic.goto_next({buffer=0})<cr>", opts) keymap(bufnr, "n", "<leader>lj", "<cmd>lua vim.diagnostic.goto_next({buffer=0})<cr>", opts)
keymap(bufnr, "n", "<leader>lk", "<cmd>lua vim.diagnostic.goto_prev({buffer=0})<cr>", opts) keymap(bufnr, "n", "<leader>lk", "<cmd>lua vim.diagnostic.goto_prev({buffer=0})<cr>", opts)
keymap(bufnr, "n", "<leader>lr", "<cmd>lua vim.lsp.buf.rename()<cr>", opts) keymap(bufnr, "n", "<leader>lr", "<cmd>lua vim.lsp.buf.rename()<cr>", opts)

@ -1,8 +1,17 @@
return { return {
settings = { settings = {
Lua = { Lua = {
runtime = {
version = "LuaJIT",
},
diagnostics = { diagnostics = {
globals = { "vim" }, globals = {
"require",
"vim",
},
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
}, },
}, },
}, },

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) time([[Luarocks path setup]], true)
local package_path_str = "/home/ayush/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?/init.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/home/ayush/.cache/nvim/packer_hererocks/2.1.1748459687/share/lua/5.1/?.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1748459687/share/lua/5.1/?/init.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1748459687/lib/luarocks/rocks-5.1/?.lua;/home/ayush/.cache/nvim/packer_hererocks/2.1.1748459687/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/ayush/.cache/nvim/packer_hererocks/2.1.1694285958/lib/lua/5.1/?.so" local install_cpath_pattern = "/home/ayush/.cache/nvim/packer_hererocks/2.1.1748459687/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end
@ -79,6 +79,11 @@ _G.packer_plugins = {
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/LuaSnip", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["autoclose.nvim"] = {
loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/autoclose.nvim",
url = "https://github.com/m4xshen/autoclose.nvim"
},
catpuccin = { catpuccin = {
loaded = true, loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/catpuccin", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/catpuccin",
@ -144,10 +149,10 @@ _G.packer_plugins = {
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/mason.nvim", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim" url = "https://github.com/williamboman/mason.nvim"
}, },
["null-ls.nvim"] = { ["none-ls.nvim"] = {
loaded = true, loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/null-ls.nvim", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/none-ls.nvim",
url = "https://github.com/jose-elias-alvarez/null-ls.nvim" url = "https://github.com/nvimtools/none-ls.nvim"
}, },
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, loaded = true,
@ -159,16 +164,20 @@ _G.packer_plugins = {
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig" url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-tree.lua"] = {
loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
url = "https://github.com/nvim-tree/nvim-tree.lua"
},
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter" url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["nvim-web-devicons"] = { ["nvim-web-devicons"] = {
loaded = false, loaded = true,
needs_bufread = false, path = "/home/ayush/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
path = "/home/ayush/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons", url = "https://github.com/nvim-tree/nvim-web-devicons"
url = "https://github.com/kyazdani42/nvim-web-devicons"
}, },
["packer.nvim"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
@ -200,6 +209,11 @@ _G.packer_plugins = {
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/telescope.nvim", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim" url = "https://github.com/nvim-telescope/telescope.nvim"
}, },
["tokyonight.nvim"] = {
loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
url = "https://github.com/folke/tokyonight.nvim"
},
["vim-illuminate"] = { ["vim-illuminate"] = {
loaded = true, loaded = true,
path = "/home/ayush/.local/share/nvim/site/pack/packer/start/vim-illuminate", path = "/home/ayush/.local/share/nvim/site/pack/packer/start/vim-illuminate",

Loading…
Cancel
Save