From c4b28b18d97e6beefa90c09b6a5e3a407b8101c9 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Thu, 2 Mar 2023 22:11:42 -0800 Subject: [PATCH] update config --- lua/plugins.lua | 70 +++++++++++++++++++-------------------- plugin-confs/nvim-cmp.lua | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 04a34b5..a150932 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -79,42 +79,42 @@ require('packer').startup(function(use) run = function() vim.fn['fzf#install']() end } - use { - "lewis6991/hover.nvim", - config = function() - require("hover").setup { - init = function() - -- Require providers - require("hover.providers.lsp") - -- require('hover.providers.gh') - -- require('hover.providers.jira') - require('hover.providers.man') - require('hover.providers.dictionary') - end, - preview_opts = { - border = "rounded" - -- border = { - -- { "╭", "FloatBorder" }, - -- { "─", "FloatBorder" }, - -- { "╮", "FloatBorder" }, - -- { "│", "FloatBorder" }, - -- { "╯", "FloatBorder" }, - -- { "─", "FloatBorder" }, - -- { "╰", "FloatBorder" }, - -- { "│", "FloatBorder" }, - -- } - }, - -- Whether the contents of a currently open hover window should be moved - -- to a :h preview-window when pressing the hover keymap. - preview_window = false, - title = true - } + -- use { + -- "lewis6991/hover.nvim", + -- config = function() + -- require("hover").setup { + -- init = function() + -- -- Require providers + -- require("hover.providers.lsp") + -- -- require('hover.providers.gh') + -- -- require('hover.providers.jira') + -- require('hover.providers.man') + -- require('hover.providers.dictionary') + -- end, + -- preview_opts = { + -- border = "rounded" + -- -- border = { + -- -- { "╭", "FloatBorder" }, + -- -- { "─", "FloatBorder" }, + -- -- { "╮", "FloatBorder" }, + -- -- { "│", "FloatBorder" }, + -- -- { "╯", "FloatBorder" }, + -- -- { "─", "FloatBorder" }, + -- -- { "╰", "FloatBorder" }, + -- -- { "│", "FloatBorder" }, + -- -- } + -- }, + -- -- Whether the contents of a currently open hover window should be moved + -- -- to a :h preview-window when pressing the hover keymap. + -- preview_window = false, + -- title = true + -- } - -- Setup keymaps - vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"}) - vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"}) - end - } + -- -- Setup keymaps + -- vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"}) + -- vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"}) + -- end + -- } use 'ap/vim-css-color' use 'jiangmiao/auto-pairs' diff --git a/plugin-confs/nvim-cmp.lua b/plugin-confs/nvim-cmp.lua index 184eb65..9aef325 100644 --- a/plugin-confs/nvim-cmp.lua +++ b/plugin-confs/nvim-cmp.lua @@ -175,7 +175,7 @@ cmp.setup({ }) -local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' } +local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls', 'lua_ls' } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { -- on_attach = my_custom_on_attach,