some changes

Add lua-ls
Add lsp for gdscript.
Add plugin for call hierarchy
This commit is contained in:
Marco 2023-09-20 22:43:26 +02:00
parent 6737dcf50a
commit b629837cec
7 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,17 @@
local dap = require("dap")
dap.adapters.godot = {
type = "server",
host = '127.0.0.1',
port = 6006,
}
dap.configurations.gdscript = {
{
type = "godot",
request = "launch",
name = "Launch scene",
project = "${workspaceFolder}",
launch_scene = true,
}
}

View File

@ -0,0 +1,8 @@
-- configure the litee.nvim library
require('litee.lib').setup({})
-- configure litee-calltree.nvim
require('litee.calltree').setup({
on_open = "panel",
})
vim.keymap.set("n", "<leader>ci", ":lua vim.lsp.buf.incoming_calls()<CR>")

View File

@ -0,0 +1 @@
require("lspconfig").gdscript.setup{}

View File

@ -0,0 +1,3 @@
-- lua lsp is not installed by packer but is actually a package installed with pacman
require('lspconfig').lua_ls.setup {
}

View File

@ -1,2 +1,5 @@
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fs', function()
builtin.grep_string({ search = vim.fn.input("Find: ") });
end)

View File

@ -18,6 +18,9 @@ return require('packer').startup(function(use)
use 'simrat39/rust-tools.nvim' use 'simrat39/rust-tools.nvim'
use 'akinsho/flutter-tools.nvim' use 'akinsho/flutter-tools.nvim'
-- Call hierarchy
use {'ldelossa/litee-calltree.nvim', requires = 'ldelossa/litee.nvim'}
-- debugging -- debugging
use 'mfussenegger/nvim-dap' use 'mfussenegger/nvim-dap'
use 'leoluz/nvim-dap-go' use 'leoluz/nvim-dap-go'

View File

@ -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/m/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?/init.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?/init.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/lua/5.1/?.so" local install_cpath_pattern = "/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/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
@ -109,6 +109,16 @@ _G.packer_plugins = {
path = "/home/m/.local/share/nvim/site/pack/packer/start/gruvbox.nvim", path = "/home/m/.local/share/nvim/site/pack/packer/start/gruvbox.nvim",
url = "https://github.com/ellisonleao/gruvbox.nvim" url = "https://github.com/ellisonleao/gruvbox.nvim"
}, },
["litee-calltree.nvim"] = {
loaded = true,
path = "/home/m/.local/share/nvim/site/pack/packer/start/litee-calltree.nvim",
url = "https://github.com/ldelossa/litee-calltree.nvim"
},
["litee.nvim"] = {
loaded = true,
path = "/home/m/.local/share/nvim/site/pack/packer/start/litee.nvim",
url = "https://github.com/ldelossa/litee.nvim"
},
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, loaded = true,
path = "/home/m/.local/share/nvim/site/pack/packer/start/nvim-cmp", path = "/home/m/.local/share/nvim/site/pack/packer/start/nvim-cmp",