Compare commits

...

22 Commits

Author SHA1 Message Date
Mathias Rothenhaeusler 38709a3b71 remove markdown, not working 2026-06-10 08:10:14 +02:00
mathias 391b30bd7a updated new textobjects method 2026-05-24 14:29:08 +02:00
mathias 0af71243a3 remove old leader s from vimrc 2026-05-20 21:22:55 +02:00
mathias d0ea7c50a0 gl mapping 2026-05-06 19:53:03 +02:00
mathias 233275c160 added gl, easymotion in line 2026-05-05 19:31:44 +02:00
mathias ccd0319364 fix some paths, install rust-analyzer not in mason! 2026-05-05 19:22:04 +02:00
Mathias Rothenhaeusler f11dae4fce fix telescope preview 2026-04-22 16:58:18 +02:00
mathias 09e50948e4 treesitter for nvim 0.12 2026-04-19 13:01:12 +02:00
mathias d1167c2fe9 fix treesitter config, configs issue 2026-04-03 10:55:43 +02:00
Mathias Rothenhaeusler 04f1abe4d1 Merge branch 'main' of https://gitea.safemind.net/mathias/nvim-kickstart 2026-04-03 10:42:28 +02:00
mathias 821f9bee27 fix treesitter config 2026-04-03 10:35:50 +02:00
mathias fbcc0b8d61 fix error message intelephense license txt 2026-03-22 17:17:16 +01:00
Mathias Rothenhaeusler 6a326d7321 phpactor deactivation 2026-01-12 14:34:15 +01:00
Mathias Rothenhaeusler 36bb19fc4e phpactor deactivation 2026-01-12 14:32:15 +01:00
mathias 8850a7cc27 show diagnostics for buffer db 2025-12-30 19:48:36 +01:00
mathias 480e35d011 improve lsp 2025-12-29 12:49:47 +01:00
mathias 95d3e129ad improve nvim-cmp 2025-11-29 19:10:35 +01:00
mathias 2e55a01664 optimize keymaps diagnostics 2025-11-24 19:09:28 +01:00
mathias a233f6e7f2 added clippy for rust lsp setup 2025-11-24 18:53:57 +01:00
mathias 8f4d2e287e lsp fixes and tweaks 2025-11-23 12:17:56 +01:00
mathias a660f0c788 cleanup lspsaga 2025-11-22 12:55:21 +01:00
mathias f75def6081 cleanup lspsaga setup 2025-11-22 12:11:52 +01:00
8 changed files with 137 additions and 166 deletions
+32 -86
View File
@@ -75,25 +75,12 @@ require('lazy').setup({
-- Detect tabstop and shiftwidth automatically -- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth', 'tpope/vim-sleuth',
-- NOTE: This is where your plugins related to LSP can be installed. -- seems i need this regardless
-- The configuration is done below. Search for lspconfig to find it below. 'neovim/nvim-lspconfig',
{ {
-- LSP Configuration & Plugins 'williamboman/mason.nvim', config = true
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs to stdpath for neovim
{ 'williamboman/mason.nvim', config = true },
'williamboman/mason-lspconfig.nvim',
-- Useful status updates for LSP
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },
-- Additional lua configuration, makes nvim stuff amazing!
-- 'folke/neodev.nvim',
},
}, },
'williamboman/mason-lspconfig.nvim',
{ {
-- Autocompletion -- Autocompletion
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
@@ -146,8 +133,7 @@ require('lazy').setup({
-- Fuzzy Finder (files, lsp, etc) -- Fuzzy Finder (files, lsp, etc)
{ {
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim', version = '*',
branch = '0.1.x',
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
-- Fuzzy Finder Algorithm which requires local dependencies to be built. -- Fuzzy Finder Algorithm which requires local dependencies to be built.
@@ -167,31 +153,37 @@ require('lazy').setup({
{ -- Highlight, edit, and navigate code { -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
branch="main",
lazy = false,
build = ':TSUpdate', build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- config = function()
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- require('nvim-treesitter.configs').setup({
opts = { -- ensure_installed = { 'bash', 'php', 'rust', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
ensure_installed = { 'bash', 'php', 'rust', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, -- auto_install = true,
-- Autoinstall languages that are not installed -- highlight = {
auto_install = true, -- enable = true,
highlight = { -- additional_vim_regex_highlighting = { 'ruby' },
enable = true, -- },
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. -- indent = { enable = true, disable = { 'ruby' } },
-- If you are experiencing weird indenting issues, add the language to -- })
-- the list of additional_vim_regex_highlighting and disabled languages for indent. -- end,
additional_vim_regex_highlighting = { 'ruby' },
},
indent = { enable = true, disable = { 'ruby' } },
},
dependencies = { dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-textobjects',
branch="main"
}, },
-- There are additional nvim-treesitter modules that you can use to interact init = function()
-- with nvim-treesitter. You should go explore a few and see what interests you: local ensureInstalled = {
-- 'lua', 'python', 'typescript',
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod` -- ... your parsers
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context }
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects local alreadyInstalled = require('nvim-treesitter.config').get_installed()
local parsersToInstall = vim.iter(ensureInstalled)
:filter(function(parser)
return not vim.tbl_contains(alreadyInstalled, parser)
end)
:totable()
require('nvim-treesitter').install(parsersToInstall)
end,
}, },
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
@@ -282,53 +274,8 @@ vim.api.nvim_create_autocmd('TextYankPost', {
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' }) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
vim.keymap.set('n', '<leader>dd', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' }) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })
-- [[ Configure LSP ]]
-- This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)
-- NOTE: Remember that lua is a real programming language, and as such it is possible
-- to define small helper and utility functions so you don't have to repeat yourself
-- many times.
--
-- In this case, we create a function that lets us more easily define mappings specific
-- for LSP related items. It sets the mode, buffer and description for us each time.
local nmap = function(keys, func, desc)
if desc then
desc = 'LSP: ' .. desc
end
vim.keymap.set('n', keys, func, { buffer = bufnr, desc = desc })
end
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation')
nmap('<leader>D', vim.lsp.buf.type_definition, 'Type [D]efinition')
nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
-- See `:help K` for why this keymap
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
-- Lesser used LSP functionality
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
nmap('<leader>wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder')
nmap('<leader>wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder')
nmap('<leader>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, '[W]orkspace [L]ist Folders')
-- Create a command `:Format` local to the LSP buffer
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
vim.lsp.buf.format()
end, { desc = 'Format current buffer with LSP' })
end
-- Setup neovim lua configuration -- Setup neovim lua configuration
-- require('neodev').setup() -- require('neodev').setup()
@@ -354,7 +301,6 @@ require('custom.catppuccin')
require('custom.lua-line') require('custom.lua-line')
require('custom.telescope') require('custom.telescope')
require('custom.lspconfig') require('custom.lspconfig')
require('custom.lspsaga')
require('custom.nvim-cmp') require('custom.nvim-cmp')
require('custom.toggleterm') require('custom.toggleterm')
require('custom.autopairs') require('custom.autopairs')
+1
View File
@@ -66,6 +66,7 @@ keymap.set('n', '<M-1>', '<cmd>ToggleTerm direction=horizontal<cr>', { silent =
keymap.set('n', '<leader>f', '<Plug>(easymotion-prefix)', { silent = true }) keymap.set('n', '<leader>f', '<Plug>(easymotion-prefix)', { silent = true })
keymap.set('n', '<leader>fs', '<Plug>(easymotion-sn)', { silent = true }) keymap.set('n', '<leader>fs', '<Plug>(easymotion-sn)', { silent = true })
keymap.set('n', '<leader>w', '<Plug>(easymotion-overwin-f2)', { silent = true }) keymap.set('n', '<leader>w', '<Plug>(easymotion-overwin-f2)', { silent = true })
keymap.set('n', 'gl', '<Plug>(easymotion-sl)', { silent = true })
vim.g.EasyMotion_smartcase = 1 vim.g.EasyMotion_smartcase = 1
+45 -35
View File
@@ -1,9 +1,9 @@
-- lsp.lua (replace your current file with this) -- lsp.lua (replace your current file with this)
-- import cmp-nvim-lsp plugin safely -- import cmp-nvim-lsp plugin safely
local cmp_nvim_lsp_status, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp") -- local cmp_nvim_lsp_status, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp")
if not cmp_nvim_lsp_status then -- if not cmp_nvim_lsp_status then
return -- return
end -- end
local keymap = vim.keymap -- for conciseness local keymap = vim.keymap -- for conciseness
@@ -55,7 +55,10 @@ local on_attach = function(_, bufnr)
keymap.set("n", "g0", "<cmd>lua vim.lsp.buf.document_symbol()<CR>", opts) keymap.set("n", "g0", "<cmd>lua vim.lsp.buf.document_symbol()<CR>", opts)
keymap.set("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts) keymap.set("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
keymap.set("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) keymap.set("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
keymap.set("n", "<leader>l", smart_format, opts) -- keymap.set("n", "<leader>l", smart_format, opts)
keymap.set("n", "<leader>l", function()
vim.lsp.buf.format()
end, { desc = "Format code function" })
keymap.set("n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts) keymap.set("n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
keymap.set( keymap.set(
"n", "n",
@@ -73,19 +76,20 @@ local on_attach = function(_, bufnr)
keymap.set("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>", opts) keymap.set("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>", opts)
keymap.set("n", "ge", "<cmd>Lspsaga show_line_diagnostics<CR>", opts) keymap.set("n", "ge", "<cmd>Lspsaga show_line_diagnostics<CR>", opts)
keymap.set("n", "<a-cr>", "<cmd>Lspsaga code_action<CR>", opts) keymap.set("n", "<a-cr>", "<cmd>Lspsaga code_action<CR>", opts)
keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics<CR>", opts) -- keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics<CR>", opts)
keymap.set("n", "<leader>da", "<cmd>Lspsaga show_workspace_diagnostics ++float<CR>", opts)
keymap.set("n", "<leader>db", "<cmd>Lspsaga show_buf_diagnostics ++float<CR>", opts)
keymap.set("n", "<leader>dn", "<cmd>Lspsaga diagnostic_jump_next<CR>") keymap.set("n", "<leader>dn", "<cmd>Lspsaga diagnostic_jump_next<CR>")
keymap.set("n", "<leader>dp", "<cmd>Lspsaga diagnostic_jump_prev<CR>") keymap.set("n", "<leader>dp", "<cmd>Lspsaga diagnostic_jump_prev<CR>")
keymap.set("n", "gj", "<cmd>lua require'nvim-treesitter.textobjects.move'.goto_next_start('@function.outer')<CR>", keymap.set("n", "gj", "<cmd>lua require'nvim-treesitter-textobjects.move'.goto_next_start('@function.outer')<CR>",
opts) opts)
keymap.set("n", "gk", "<cmd>lua require'nvim-treesitter.textobjects.move'.goto_previous_start('@function.outer')<CR>", keymap.set("n", "gk", "<cmd>lua require'nvim-treesitter-textobjects.move'.goto_previous_start('@function.outer')<CR>",
opts) opts)
end end
-- capabilities -- capabilities
local capabilities = cmp_nvim_lsp.default_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()
-- helper for registering server configs (lazy attach) -- helper for registering server configs (lazy attach)
local function setup_server(name, config) local function setup_server(name, config)
local cfg = vim.tbl_deep_extend("force", { local cfg = vim.tbl_deep_extend("force", {
@@ -106,53 +110,59 @@ setup_server("pyright", { filetypes = { "py" } })
setup_server("html", { filetypes = { "html" } }) setup_server("html", { filetypes = { "html" } })
setup_server("cssls", setup_server("cssls",
{ filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" } }) { filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" } })
setup_server("tailwindcss", {
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
})
setup_server("emmet_ls", {
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
})
setup_server("eslint", { setup_server("eslint", {
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" }, filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
}) })
setup_server("rust_analyzer", { setup_server("rust_analyzer", {
settings = { settings = {
["rust-analyzer"] = { checkOnSave = true }, ["rust-analyzer"] = { checkOnSave = true, check = { command = "clippy" } },
}, },
}) })
-- PHP LSPs -- PHP LSPs
local util = vim.lsp.util local util = vim.lsp.util
root_dir = function(fname) local root_dir = function(fname)
return util.root_pattern("composer.json", ".git")(fname) return util.root_pattern("composer.json", ".git")(fname)
or util.path.dirname(fname) or util.path.dirname(fname)
end end
setup_server("phpactor", { local fallback_root_dir = function(fname)
filetypes = { "php" }, return util.root_pattern("composer.json", ".git")(fname) or util.path.dirname(fname)
root_dir = fallback_root_dir, end
init_options = {
["language_server_phpstan.enabled"] = true,
["language_server_psalm.enabled"] = false,
},
})
vim.lsp.config("lua_ls", { -- start it manually :LspStart phpactor
-- setup_server("phpactor", {
-- filetypes = { "php" },
-- -- root_dir = fallback_root_dir,
-- init_options = {
-- ["language_server_phpstan.enabled"] = true,
-- ["language_server_psalm.enabled"] = false,
-- },
-- })
setup_server("lua_ls", {
filetypes = { "lua" }, filetypes = { "lua" },
settings = { settings = {
Lua = { Lua = {
diagnostics = { diagnostics = {
globals = { "vim" } } globals = { "vim" } },
format = { enable = true },
} }
} }
}) })
setup_server("intelephense", { setup_server("intelephense", {
filetypes = { "php" }, filetypes = { "php" },
root_dir = fallback_root_dir, -- root_dir = fallback_root_dir,
init_options = { init_options = {
licenceKey = vim.fn.readfile(vim.fn.expand("$HOME/.config/intelephense/license.txt"))[1], licenceKey = (function()
local license_path = vim.fn.expand("$HOME/.config/intelephense/license.txt")
if vim.fn.filereadable(license_path) == 1 then
return vim.fn.readfile(license_path)[1]
end
return nil
end)(),
}, },
settings = { settings = {
intelephense = { intelephense = {
@@ -176,10 +186,10 @@ setup_server("intelephense", {
-- phpcs / phpstan configs -- phpcs / phpstan configs
vim.g.nvim_phpcs_config_phpcs_path = 'phpcs' vim.g.nvim_phpcs_config_phpcs_path = 'phpcs'
vim.g.nvim_phpcs_config_phpcbf_path = 'phpcbf' vim.g.nvim_phpcs_config_phpcbf_path = 'phpcbf'
vim.g.ale_php_phpstan_executable = '/home/mace/.config/composer/vendor/bin/phpstan' vim.g.ale_php_phpstan_executable = '~/.config/composer/vendor/bin/phpstan'
local phpcs_config = "/home/mace/repos/configs/phpcs.xml" local phpcs_config = "~/repos/configs/phpcs.xml"
local phpcs_config_new = "/home/mace/repos/dotfiles/phpcs.xml" local phpcs_config_new = "~/repos/dotfiles/phpcs.xml"
if vim.loop.fs_stat(phpcs_config_new) then if vim.loop.fs_stat(phpcs_config_new) then
vim.g.nvim_phpcs_config_phpcs_standard = phpcs_config_new vim.g.nvim_phpcs_config_phpcs_standard = phpcs_config_new
elseif vim.loop.fs_stat(phpcs_config) then elseif vim.loop.fs_stat(phpcs_config) then
@@ -190,7 +200,7 @@ end
-- call this early in your init (so FileType autocommands are installed before opening files) -- call this early in your init (so FileType autocommands are installed before opening files)
local enabled_servers = { local enabled_servers = {
"bashls", "lemminx", "yamlls", "jsonls", "pyright", "html", "cssls", "bashls", "lemminx", "yamlls", "jsonls", "pyright", "html", "cssls",
"tailwindcss", "emmet_ls", "eslint", "rust_analyzer", "lua_ls", "eslint", "rust_analyzer", "lua_ls",
"phpactor", "intelephense" "intelephense"
} }
vim.lsp.enable(enabled_servers) vim.lsp.enable(enabled_servers)
-24
View File
@@ -1,24 +0,0 @@
-- import lspsaga safely
-- local saga_status, saga = pcall(require, "lspsaga")
-- if not saga_status then
-- return
-- end
require("lazy").setup({
"glepnir/lspsaga.nvim",
event = "BufRead",
config = function()
require("lspsaga").setup({})
end,
dependencies = { { "nvim-tree/nvim-web-devicons" } },
-- keybinds for navigation in lspsaga window
move_in_saga = { prev = "<C-k>", next = "<C-j>" },
-- use enter to open file with finder
finder_action_keys = {
open = "<CR>",
},
-- use enter to open file with definition preview
definition_action_keys = {
edit = "<CR>",
},
})
+32 -7
View File
@@ -19,6 +19,11 @@ end
-- load vs-code like snippets from plugins (e.g. friendly-snippets) -- load vs-code like snippets from plugins (e.g. friendly-snippets)
require("luasnip/loaders/from_vscode").lazy_load() require("luasnip/loaders/from_vscode").lazy_load()
local function has_words_before()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
vim.opt.completeopt = "menu,menuone,noselect" vim.opt.completeopt = "menu,menuone,noselect"
cmp.setup({ cmp.setup({
@@ -34,20 +39,40 @@ cmp.setup({
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<C-k>"] = cmp.mapping.select_prev_item(), -- previous suggestion ["<C-k>"] = cmp.mapping(function(fallback)
["<C-j>"] = cmp.mapping.select_next_item(), -- next suggestion if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { "i", "s" }),
["<C-j>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()
else
fallback()
end
end, { "i", "s" }),
["<C-b>"] = cmp.mapping.scroll_docs(-4), ["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(), -- close completion window ["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }), ["<CR>"] = cmp.mapping.confirm({ select = true }),
}), }),
-- sources for autocompletion -- sources for autocompletion
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "nvim_lsp" }, -- lsp { name = "nvim_lsp" }, -- lsp
{ name = "luasnip" }, -- snippets { name = "luasnip" }, -- snippets
{ name = "buffer", keyword_length = 5 }, -- text within current buffer { name = "buffer", keyword_length = 5 }, -- text within current buffer
{ name = "path" }, -- file system paths { name = "path" }, -- file system paths
}), }),
-- configure lspkind for vs-code like icons -- configure lspkind for vs-code like icons
formatting = { formatting = {
+23 -13
View File
@@ -27,15 +27,23 @@ return {
{ "startup-nvim/startup.nvim", dependencies = "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, { "startup-nvim/startup.nvim", dependencies = "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
{ {
"glepnir/lspsaga.nvim", 'nvimdev/lspsaga.nvim',
event = "BufRead",
config = function() config = function()
require("lspsaga").setup({}) require('lspsaga').setup({})
end, end,
dependencies = { dependencies = {
{ "nvim-tree/nvim-web-devicons" }, 'nvim-treesitter/nvim-treesitter', -- optional
--Please make sure you install markdown and markdown_inline parser 'nvim-tree/nvim-web-devicons', -- optional
{ "nvim-treesitter/nvim-treesitter" }, },
move_in_saga = { prev = "<C-k>", next = "<C-j>" },
-- use enter to open file with finder
finder_action_keys = {
open = "<CR>",
},
-- use enter to open file with definition preview
definition_action_keys = {
edit = "<CR>",
}, },
}, },
@@ -66,13 +74,15 @@ return {
"easymotion/vim-easymotion", "easymotion/vim-easymotion",
-- Markdown -- Markdown
{ -- {
"iamcco/markdown-preview.nvim", -- "iamcco/markdown-preview.nvim",
ft = "markdown", -- cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = function() -- build = "cd app && yarn install",
vim.fn["mkdp#util#install"]() -- init = function()
end, -- vim.g.mkdp_filetypes = { "markdown" }
}, -- end,
-- ft = { "markdown" },
-- },
{ {
'akinsho/bufferline.nvim', 'akinsho/bufferline.nvim',
+3
View File
@@ -23,6 +23,9 @@ telescope.setup({
['<C-d>'] = false, ['<C-d>'] = false,
}, },
}, },
preview = {
treesitter = false,
},
}, },
}) })
+1 -1
View File
@@ -44,7 +44,7 @@ nnoremap ,b :buffers<CR>
nnoremap <leader>y "+yy nnoremap <leader>y "+yy
vnoremap <leader>y "+y vnoremap <leader>y "+y
:nnoremap <Leader>s :%s/\<<C-r><C-w>\>/ ":nnoremap <Leader>s :%s/\<<C-r><C-w>\>/
" xnoremap ("<leader>p", "\"_dP") " xnoremap ("<leader>p", "\"_dP")
" autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab " autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab