more gdscript tweaks

This commit is contained in:
Matthew Ryan Dillon 2022-03-14 16:40:18 -07:00
parent 02e9424408
commit cde057f0e1
3 changed files with 45 additions and 29 deletions

View file

@ -36,6 +36,8 @@
~/.config/nvim/lua/plugins.lua: ~/.config/nvim/lua/plugins.lua:
create: true create: true
path: nvim/plugins.lua path: nvim/plugins.lua
~/.config/nvim/ftplugin:
path: nvim/ftplugin
~/bin/safe-reattach-to-user-namespace: ~/bin/safe-reattach-to-user-namespace:
create: true create: true
path: safe-reattach-to-user-namespace.sh path: safe-reattach-to-user-namespace.sh

View file

@ -0,0 +1 @@
setlocal shiftwidth=4

View file

@ -10,34 +10,13 @@ end
return require('packer').startup(function() return require('packer').startup(function()
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use 'wbthomason/packer.nvim' use { 'wbthomason/packer.nvim' }
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use 'wakatime/vim-wakatime' use { 'wakatime/vim-wakatime' }
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use 'calviken/vim-gdscript3' use { 'habamax/vim-godot' }
-----------------------------------------------------------------------------
use {
'neovim/nvim-lspconfig',
config = function()
lspconfig = require('lspconfig')
lspconfig.pyright.setup({
settings = {
python = {
venvPath = "~/.conda/envs",
analysis = {
useLibraryCodeForTypes = true,
}
}
}
})
lspconfig.rust_analyzer.setup({})
end,
}
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use { use {
@ -67,10 +46,10 @@ return require('packer').startup(function()
use { use {
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
requires = { requires = {
{ 'hrsh7th/cmp-vsnip', after = "nvim-cmp" }, { 'hrsh7th/cmp-vsnip', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp', after = "nvim-cmp" }, { 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-buffer', after = "nvim-cmp" }, { 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
{ 'hrsh7th/vim-vsnip', after = "nvim-cmp" }, { 'hrsh7th/vim-vsnip', after = 'nvim-cmp' },
}, },
config = function() config = function()
local cmp = require('cmp') local cmp = require('cmp')
@ -96,6 +75,38 @@ return require('packer').startup(function()
end, end,
} }
-----------------------------------------------------------------------------
use {
'neovim/nvim-lspconfig',
after = 'nvim-cmp',
config = function()
lspconfig = require('lspconfig')
lspconfig.pyright.setup({
settings = {
python = {
venvPath = "~/.conda/envs",
analysis = {
useLibraryCodeForTypes = true,
}
}
}
})
lspconfig.rust_analyzer.setup({})
local cmp = require('cmp_nvim_lsp')
local gd_capabilities = cmp.update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
lspconfig.gdscript.setup({
capabilities = gd_capabilities,
cmd = { 'nc', '127.0.0.1', '6008' },
})
end,
}
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use { use {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
@ -108,7 +119,9 @@ return require('packer').startup(function()
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
use { use {
'simrat39/rust-tools.nvim', 'simrat39/rust-tools.nvim',
after = 'nvim-lspconfig',
requires = { requires = {
{ 'neovim/nvim-lspconfig' },
{ 'nvim-lua/popup.nvim' }, { 'nvim-lua/popup.nvim' },
{ 'nvim-lua/plenary.nvim' }, { 'nvim-lua/plenary.nvim' },
}, },
@ -124,7 +137,7 @@ return require('packer').startup(function()
config = function() config = function()
require('sidebar-nvim').setup({ require('sidebar-nvim').setup({
side = 'right', side = 'right',
sections = { 'datetime', 'git-status', 'lsp-diagnostics', 'todos' } sections = { 'datetime', 'git', 'diagnostics', 'todos' }
}) })
end, end,
} }