Compare commits

...

3 Commits

Author SHA1 Message Date
mandlm ccbfaa9dbf
feat: install lazygit 2022-12-25 14:59:14 +01:00
mandlm 24ae389ee9
feat(nvim): add telescope-file-browser 2022-12-25 12:48:58 +01:00
mandlm 70c37606e1
fix: upgrade formatting setup to new syntax 2022-12-20 08:47:32 +01:00
5 changed files with 10 additions and 3 deletions

View File

@ -119,6 +119,7 @@ in
telescope-nvim telescope-nvim
telescope-fzf-native-nvim telescope-fzf-native-nvim
telescope-ui-select-nvim telescope-ui-select-nvim
telescope-file-browser-nvim
# LSP # LSP
nvim-lspconfig nvim-lspconfig

View File

@ -23,6 +23,7 @@ nnoremap("<leader>G", ":GV --all<CR>")
local telescope = require("telescope.builtin") local telescope = require("telescope.builtin")
local telescope_themes = require("telescope.themes") local telescope_themes = require("telescope.themes")
local telescope_projects = require("telescope").extensions.projects local telescope_projects = require("telescope").extensions.projects
local telescope_file_browser = require("telescope").extensions.file_browser
local function map_telescope(key, telescope_function) local function map_telescope(key, telescope_function)
vim.api.nvim_set_keymap("n", key, "", { vim.api.nvim_set_keymap("n", key, "", {
@ -36,7 +37,7 @@ local function map_telescope(key, telescope_function)
end end
map_telescope("<leader>ff", telescope.find_files) map_telescope("<leader>ff", telescope.find_files)
map_telescope("<leader>fb", telescope.buffers) map_telescope("<leader>fb", telescope_file_browser.file_browser)
map_telescope("<leader>fg", telescope.git_files) map_telescope("<leader>fg", telescope.git_files)
map_telescope("<leader>fp", telescope_projects.projects) map_telescope("<leader>fp", telescope_projects.projects)
map_telescope("<leader>fs", telescope.lsp_dynamic_workspace_symbols) map_telescope("<leader>fs", telescope.lsp_dynamic_workspace_symbols)

View File

@ -15,7 +15,7 @@ local on_attach = function(client, bufnr)
nnoremap("K", vim.lsp.buf.hover) nnoremap("K", vim.lsp.buf.hover)
nnoremap("<leader>rn", vim.lsp.buf.rename) nnoremap("<leader>rn", vim.lsp.buf.rename)
nnoremap("<leader>ca", vim.lsp.buf.code_action) nnoremap("<leader>ca", vim.lsp.buf.code_action)
nnoremap("<leader>f", vim.lsp.buf.formatting) nnoremap("<leader>f", vim.lsp.buf.format)
nnoremap("<leader>d", telescope.diagnostics) nnoremap("<leader>d", telescope.diagnostics)
nnoremap("<leader>D", require("lsp_lines").toggle) nnoremap("<leader>D", require("lsp_lines").toggle)
nnoremap("<C-p>", vim.diagnostic.goto_prev) nnoremap("<C-p>", vim.diagnostic.goto_prev)
@ -23,7 +23,7 @@ local on_attach = function(client, bufnr)
-- disable tsserver formatting -- disable tsserver formatting
if client.name == "tsserver" then if client.name == "tsserver" then
client.resolved_capabilities["document_formatting"] = false client.server_capabilities.document_formatting = false
end end
if client.supports_method("textDocument/formatting") then if client.supports_method("textDocument/formatting") then

View File

@ -21,9 +21,13 @@ telescope.setup({
["ui-select"] = { ["ui-select"] = {
themes.get_dropdown({}) themes.get_dropdown({})
}, },
file_browser = {
hijack_netrw = true,
},
} }
}) })
telescope.load_extension("fzf") telescope.load_extension("fzf")
telescope.load_extension("ui-select") telescope.load_extension("ui-select")
telescope.load_extension("projects") telescope.load_extension("projects")
telescope.load_extension("file_browser")

View File

@ -29,6 +29,7 @@
darktable darktable
kubectl kubectl
kubectx kubectx
lazygit
]; ];
stateVersion = "22.05"; stateVersion = "22.05";