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:
@@ -15,6 +15,8 @@ map alt+9 goto_tab 9
|
|||||||
# Open new tabs in the same working directory
|
# Open new tabs in the same working directory
|
||||||
map ctrl+shift+t new_tab_with_cwd
|
map ctrl+shift+t new_tab_with_cwd
|
||||||
|
|
||||||
|
map super+t new_tab_with_cwd
|
||||||
|
|
||||||
# When on wayland remove the unsightly title bar
|
# When on wayland remove the unsightly title bar
|
||||||
linux_display_server x11
|
linux_display_server x11
|
||||||
|
|
||||||
|
|||||||
+16
-15
@@ -10,6 +10,9 @@ Plug 'google/vim-codefmt'
|
|||||||
" `:help :Glaive` for usage.
|
" `:help :Glaive` for usage.
|
||||||
Plug 'google/vim-glaive'
|
Plug 'google/vim-glaive'
|
||||||
|
|
||||||
|
" Kotlin
|
||||||
|
Plug 'udalov/kotlin-vim'
|
||||||
|
|
||||||
" Go development
|
" Go development
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
|
|
||||||
@@ -118,12 +121,18 @@ cmp.setup({
|
|||||||
-- Tab immediately completes. C-n/C-p to select.
|
-- Tab immediately completes. C-n/C-p to select.
|
||||||
['<Tab>'] = cmp.mapping.confirm({ select = true })
|
['<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!
|
-- TODO: currently snippets from lsp end up getting prioritized -- stop that!
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
}, {
|
}
|
||||||
{ name = 'path' },
|
-- Disable 'path' auto-completion
|
||||||
}),
|
--[[
|
||||||
|
{
|
||||||
|
{ name = 'path' },
|
||||||
|
}
|
||||||
|
--]]
|
||||||
|
),
|
||||||
experimental = {
|
experimental = {
|
||||||
ghost_text = true,
|
ghost_text = true,
|
||||||
},
|
},
|
||||||
@@ -204,20 +213,12 @@ vim.g.markdown_fenced_languages = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- Deno Javascript Language Server
|
-- Deno Javascript Language Server
|
||||||
|
--[[
|
||||||
lspconfig.denols.setup{
|
lspconfig.denols.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
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
|
-- Flow Javascript Language Server
|
||||||
lspconfig.flow.setup{
|
lspconfig.flow.setup{
|
||||||
|
|||||||
Reference in New Issue
Block a user