summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/lsp/config
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/config')
-rw-r--r--.config/nvim/lua/getchoo/lsp/config/cmp.lua6
-rw-r--r--.config/nvim/lua/getchoo/lsp/config/init.lua37
-rw-r--r--.config/nvim/lua/getchoo/lsp/config/lsp_config.lua6
3 files changed, 36 insertions, 13 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/config/cmp.lua b/.config/nvim/lua/getchoo/lsp/config/cmp.lua
index bfade29..868b6f1 100644
--- a/.config/nvim/lua/getchoo/lsp/config/cmp.lua
+++ b/.config/nvim/lua/getchoo/lsp/config/cmp.lua
@@ -21,10 +21,6 @@ M.config = {
end,
},
mapping = mapping.preset.insert({
- ["<C-Space>"] = mapping.complete(),
- ["<CR>"] = mapping.confirm({
- select = true,
- }),
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
@@ -54,8 +50,8 @@ M.config = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "vsnip" },
- }, {
{ name = "buffer" },
+ { name = "path" },
}),
}
diff --git a/.config/nvim/lua/getchoo/lsp/config/init.lua b/.config/nvim/lua/getchoo/lsp/config/init.lua
index e6549e6..7cb2cbb 100644
--- a/.config/nvim/lua/getchoo/lsp/config/init.lua
+++ b/.config/nvim/lua/getchoo/lsp/config/init.lua
@@ -7,13 +7,38 @@ local null_ls = require("getchoo.lsp.config.null_ls")
local M = {}
M.bufferline = {
- options = {
- numbers = "ordinal",
- diagnostics = "nvim_lsp",
- always_show_bufferline = false,
+ animation = true,
+ auto_hide = true,
+ icons = true,
+ maximum_padding = 2,
+ semantic_letters = true,
+}
+
+local db = require("dashboard")
+db.custom_center = {
+ {
+ desc = "find a file",
+ action = "Telescope fd",
+ },
+ {
+ desc = "update plugins",
+ action = "PackerSync",
+ },
+ {
+ desc = "update treesitter parsers",
+ actions = "TSUpdate",
},
}
+db.custom_header = {
+ " ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
+ " ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
+ " ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
+ " ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
+ " ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
+ " ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
+}
+
M.cmp = cmp.config
M.lsp_servers = lsp_config.servers
@@ -27,6 +52,10 @@ M.tree = {}
M.treesitter = {
auto_install = true,
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = false,
+ },
}
M.trouble = {}
diff --git a/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua b/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
index 4bf69e4..6b13d19 100644
--- a/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
+++ b/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
@@ -8,8 +8,8 @@ local on_attach = function(client, bufnr)
end
local all_config = {
- on_attach = on_attach,
capabilities = cmp.capabilities,
+ on_attach = on_attach,
}
local servers = {}
@@ -18,6 +18,7 @@ for _, server in ipairs(sources.lsp_servers) do
end
servers["sumneko_lua"] = {
+ capabilities = cmp.capabilities,
on_attach = on_attach,
settings = {
Lua = {
@@ -30,9 +31,6 @@ servers["sumneko_lua"] = {
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
},
- telemetry = {
- enable = false,
- },
},
},
}