neovim: lua-lsp good now

top-level-nix
Pegasust 2022-12-26 04:34:17 -07:00
parent 2dcd1b7956
commit 66f13ffb37
2 changed files with 7 additions and 8 deletions

View File

@ -216,7 +216,7 @@ require('telescope').setup {
case_mode = 'smart_case'
},
file_browser = {
theme = "ivy",
theme = require('telescope.themes').get_ivy().theme,
hiject_netrw = true, -- disables netrw and use file-browser instead
mappings = {
["i"] = {}, -- disable any shortcut in insert mode for now
@ -246,7 +246,7 @@ pcall(require('telescope').load_extension, 'file_browser')
remap('n', '<C-p>', '<cmd>Telescope<cr>', { desc = 'Open Telescope general search' })
remap('n', '<leader>fm', function()
require("telescope").extensions.file_browser.file_browser()
require("telescope").extensions.file_browser.file_browser({})
end, { desc = '[F]ile [M]utation' })
remap('n', '<leader>ff', function()
@ -258,11 +258,11 @@ remap('n', '<leader>ff', function()
end, { desc = '[F]ind [F]ile' })
remap('n', '<leader>fa', function()
require('telescope.builtin').find_files({
require('telescope.builtin').find_files(require('telescope.themes').get_ivy({
hidden = true,
no_ignore = true,
follow = true,
})
}))
end, { desc = '[F]ind [A]ll files' })
remap('n', '<leader>fg', function()
@ -943,4 +943,3 @@ require('lualine').setup {
}
require('nvim-surround').setup {}

View File

@ -20,7 +20,7 @@ let
pkgs.gcc
pkgs.tree-sitter
pkgs.fzf # file name fuzzy search
# pkgs.sumneko-lua-language-server
pkgs.sumneko-lua-language-server
pkgs.ripgrep # content fuzzy search
pkgs.zk # Zettelkasten (limited support)
pkgs.fd # Required by a Telescope plugin (?)