Let's do some C#
This commit is contained in:
@@ -40,6 +40,9 @@ Plug 'ziglang/zig.vim'
|
|||||||
Plug 'elixir-editors/vim-elixir'
|
Plug 'elixir-editors/vim-elixir'
|
||||||
Plug 'mhinz/vim-mix-format'
|
Plug 'mhinz/vim-mix-format'
|
||||||
|
|
||||||
|
" C# / .NET
|
||||||
|
Plug 'seblyng/roslyn.nvim'
|
||||||
|
|
||||||
" Godot
|
" Godot
|
||||||
Plug 'habamax/vim-godot'
|
Plug 'habamax/vim-godot'
|
||||||
|
|
||||||
@@ -51,6 +54,7 @@ Plug 'milkypostman/vim-togglelist' " <leader>l and <leader>q
|
|||||||
|
|
||||||
" Snippets
|
" Snippets
|
||||||
Plug 'L3MON4D3/LuaSnip'
|
Plug 'L3MON4D3/LuaSnip'
|
||||||
|
Plug 'rafamadriz/friendly-snippets'
|
||||||
|
|
||||||
" Appearance
|
" Appearance
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
@@ -113,6 +117,8 @@ Plug 'nvim-telescope/telescope.nvim'
|
|||||||
Plug 'MunifTanjim/nui.nvim'
|
Plug 'MunifTanjim/nui.nvim'
|
||||||
Plug 'nvim-neo-tree/neo-tree.nvim'
|
Plug 'nvim-neo-tree/neo-tree.nvim'
|
||||||
|
|
||||||
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Colorscheme
|
" Colorscheme
|
||||||
@@ -232,7 +238,7 @@ local on_attach = function(client, bufnr)
|
|||||||
buf_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
buf_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
||||||
buf_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
buf_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
||||||
buf_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
|
buf_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
|
||||||
buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.format()<CR>', opts)
|
||||||
|
|
||||||
-- buf_set_keymap('n', 'gh', '<cmd>lua require(\'lspsaga.provider\').lsp_finder()<CR>', opts)
|
-- buf_set_keymap('n', 'gh', '<cmd>lua require(\'lspsaga.provider\').lsp_finder()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<leader>ca', '<cmd>lua require(\'lspsaga.codeaction\').code_action()<CR>', opts)
|
-- buf_set_keymap('n', '<leader>ca', '<cmd>lua require(\'lspsaga.codeaction\').code_action()<CR>', opts)
|
||||||
@@ -283,6 +289,20 @@ vim.lsp.config('elixirls', {
|
|||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.config('roslyn', {
|
||||||
|
cmd = {
|
||||||
|
"dotnet-bin-10.0",
|
||||||
|
vim.fn.expand("~/.local/share/roslyn/content/LanguageServer/linux-x64/Microsoft.CodeAnalysis.LanguageServer.dll"),
|
||||||
|
"--logLevel", -- this property is required by the server
|
||||||
|
"Information",
|
||||||
|
"--extensionLogDirectory", -- this property is required by the server
|
||||||
|
"/tmp/roslyn_ls/logs",
|
||||||
|
"--stdio",
|
||||||
|
},
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
vim.lsp.config('gdscript', {
|
vim.lsp.config('gdscript', {
|
||||||
-- cmd = { "godot", "--editor", "--headless", "--lsp-port", "6005"},
|
-- cmd = { "godot", "--editor", "--headless", "--lsp-port", "6005"},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@@ -412,6 +432,8 @@ local has_words_before = function()
|
|||||||
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
experimental = {
|
experimental = {
|
||||||
ghost_text = { hl_group = 'Comment' }
|
ghost_text = { hl_group = 'Comment' }
|
||||||
|
|||||||
Reference in New Issue
Block a user