neovim: lua-lsp good now
parent
2dcd1b7956
commit
66f13ffb37
|
@ -216,7 +216,7 @@ require('telescope').setup {
|
||||||
case_mode = 'smart_case'
|
case_mode = 'smart_case'
|
||||||
},
|
},
|
||||||
file_browser = {
|
file_browser = {
|
||||||
theme = "ivy",
|
theme = require('telescope.themes').get_ivy().theme,
|
||||||
hiject_netrw = true, -- disables netrw and use file-browser instead
|
hiject_netrw = true, -- disables netrw and use file-browser instead
|
||||||
mappings = {
|
mappings = {
|
||||||
["i"] = {}, -- disable any shortcut in insert mode for now
|
["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', '<C-p>', '<cmd>Telescope<cr>', { desc = 'Open Telescope general search' })
|
||||||
|
|
||||||
remap('n', '<leader>fm', function()
|
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' })
|
end, { desc = '[F]ile [M]utation' })
|
||||||
|
|
||||||
remap('n', '<leader>ff', function()
|
remap('n', '<leader>ff', function()
|
||||||
|
@ -258,11 +258,11 @@ remap('n', '<leader>ff', function()
|
||||||
end, { desc = '[F]ind [F]ile' })
|
end, { desc = '[F]ind [F]ile' })
|
||||||
|
|
||||||
remap('n', '<leader>fa', function()
|
remap('n', '<leader>fa', function()
|
||||||
require('telescope.builtin').find_files({
|
require('telescope.builtin').find_files(require('telescope.themes').get_ivy({
|
||||||
hidden = true,
|
hidden = true,
|
||||||
no_ignore = true,
|
no_ignore = true,
|
||||||
follow = true,
|
follow = true,
|
||||||
})
|
}))
|
||||||
end, { desc = '[F]ind [A]ll files' })
|
end, { desc = '[F]ind [A]ll files' })
|
||||||
|
|
||||||
remap('n', '<leader>fg', function()
|
remap('n', '<leader>fg', function()
|
||||||
|
@ -284,7 +284,7 @@ end, { desc = '[F]ind [D]iagnostics' })
|
||||||
-- ZK remap stuffs
|
-- ZK remap stuffs
|
||||||
remap('n', '<leader>zf', function()
|
remap('n', '<leader>zf', function()
|
||||||
-- vim.cmd([[:ZkNotes]])
|
-- vim.cmd([[:ZkNotes]])
|
||||||
require('zk').edit({}, {multi_select = false})
|
require('zk').edit({}, { multi_select = false })
|
||||||
end, { desc = '[Z]ettelkasten [F]iles' })
|
end, { desc = '[Z]ettelkasten [F]iles' })
|
||||||
|
|
||||||
remap('n', '<leader>zg', function()
|
remap('n', '<leader>zg', function()
|
||||||
|
@ -894,7 +894,7 @@ require('zk.commands').add("ZkGrep", function(match_ctor)
|
||||||
elseif type(match_ctor) == 'string' then
|
elseif type(match_ctor) == 'string' then
|
||||||
match = { match = grep_str }
|
match = { match = grep_str }
|
||||||
end
|
end
|
||||||
require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'", mutli_select = false})
|
require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'", mutli_select = false })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
@ -943,4 +943,3 @@ require('lualine').setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
require('nvim-surround').setup {}
|
require('nvim-surround').setup {}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ let
|
||||||
pkgs.gcc
|
pkgs.gcc
|
||||||
pkgs.tree-sitter
|
pkgs.tree-sitter
|
||||||
pkgs.fzf # file name fuzzy search
|
pkgs.fzf # file name fuzzy search
|
||||||
# pkgs.sumneko-lua-language-server
|
pkgs.sumneko-lua-language-server
|
||||||
pkgs.ripgrep # content fuzzy search
|
pkgs.ripgrep # content fuzzy search
|
||||||
pkgs.zk # Zettelkasten (limited support)
|
pkgs.zk # Zettelkasten (limited support)
|
||||||
pkgs.fd # Required by a Telescope plugin (?)
|
pkgs.fd # Required by a Telescope plugin (?)
|
||||||
|
|
Loading…
Reference in New Issue