Addded kotlin syntax, new tabs in macos, and disabled path auto-completion with LSP

This makes it so that new tabs with Kitty in macos (cmd + t) will now open in the same directory, which is the same functionality as Linux

Paths should no longer erronoeously auto-complete every time I press a slash

And, Deno LSP is now disabled again, because Flow conflicts with it
This commit is contained in:
Nicholas Novak
2022-06-29 12:29:06 -07:00
parent 413ad6c075
commit 14013d199e
2 changed files with 18 additions and 15 deletions
+16 -15
View File
@@ -10,6 +10,9 @@ Plug 'google/vim-codefmt'
" `:help :Glaive` for usage.
Plug 'google/vim-glaive'
" Kotlin
Plug 'udalov/kotlin-vim'
" Go development
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
@@ -118,12 +121,18 @@ cmp.setup({
-- Tab immediately completes. C-n/C-p to select.
['<Tab>'] = cmp.mapping.confirm({ select = true })
},
sources = cmp.config.sources({
sources = cmp.config.sources(
{
-- TODO: currently snippets from lsp end up getting prioritized -- stop that!
{ name = 'nvim_lsp' },
}, {
{ name = 'path' },
}),
{ name = 'nvim_lsp' },
}
-- Disable 'path' auto-completion
--[[
{
{ name = 'path' },
}
--]]
),
experimental = {
ghost_text = true,
},
@@ -204,20 +213,12 @@ vim.g.markdown_fenced_languages = {
}
-- Deno Javascript Language Server
--[[
lspconfig.denols.setup{
on_attach = on_attach,
flags = lsp_flags,
-- Disable the highlighting for Deno, because it conflicts with Flow typing
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
-- Disable virtual_text
virtual_text = false,
signs = false,
}
)
}
}
--]]
-- Flow Javascript Language Server
lspconfig.flow.setup{