Godot integration, makes a server which might be an issue for multiple
nvim instances.
This commit is contained in:
parent
b2794b186d
commit
cd42033e37
8
init.lua
8
init.lua
|
@ -36,7 +36,7 @@ vim.opt.smartindent = true
|
|||
|
||||
vim.opt.wrap = false
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = { "c", "cpp", "lua", "go", "godot_resource", "python", "sql" },
|
||||
ensure_installed = { "c", "cpp", "lua", "go", "godot_resource", "odin", "python", "sql", "zig" },
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
|
@ -107,3 +107,9 @@ vim.filetype.add({
|
|||
-- },
|
||||
-- filetype = "odin",
|
||||
--}
|
||||
|
||||
local pipepath = vim.fn.stdpath("cache") .. "/server.pipe"
|
||||
if not vim.loop.fs_stat(pipepath) then
|
||||
vim.fn.serverstart(pipepath)
|
||||
end
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ local on_attach = function(client, bufnr)
|
|||
vim.keymap.set('n', '<leader>rf', tbuiltin.lsp_references, bufopts)
|
||||
vim.keymap.set('n', '<leader>rs', tbuiltin.lsp_document_symbols, bufopts)
|
||||
vim.keymap.set('n', '<leader>rr', vim.lsp.buf.rename, bufopts)
|
||||
--vim.keymap.set('i', '<A-.>', v:lua.vim.lsp.omnifunc, bufopts)
|
||||
end
|
||||
|
||||
local lsp_flags = {
|
||||
|
@ -67,3 +68,8 @@ lspconfig.pylsp.setup{
|
|||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
lspconfig.gdscript.setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue