require("lazy").setup("plugins", {
defaults = { lazy = true },
- checker = { enabled = true },
- change_detection = { notify = false, },
+ checker = { enabled = true, notify = false },
+ change_detection = { enabled = true, notify = false, },
performance = {
rtp = {
disabled_plugins = {
lsp.clangd.setup({ on_attach = keybinds })
lsp.cssls.setup({ on_attach = keybinds })
lsp.html.setup({ on_attach = keybinds })
- lsp.lua_ls.setup({ on_attach = keybinds })
lsp.solargraph.setup({ on_attach = keybinds })
lsp.julials.setup({ on_attach = keybinds })
lsp.texlab.setup({ on_attach = keybinds })
lsp.gopls.setup({ on_attach = keybinds })
+ lsp.lua_ls.setup({
+ on_attach = keybinds,
+ settings = {
+ Lua = {
+ diagnostics = { globals = "vim" }
+ }
+ }
+ })
-- diagnostic settings
vim.lsp.diagnostics = {
{ '<LEADER>li', '<CMD>Telescope lsp_implementations<CR>' },
{ '<LEADER>ls', '<CMD>Telescope lsp_document_symbols<CR>' },
{ '<LEADER>lS', '<CMD>Telescope lsp_workspace_symbols<CR>' },
+ { '<LEADER>tw', function()
+ local word = vim.fn.expand("<cword>")
+ require('telescope.builtin').grep_string({ search = word })
+ end },
+ { '<LEADER>tW', function()
+ local word = vim.fn.expand("<cWORD>")
+ require('telescope.builtin').grep_string({ search = word })
+ end },
},
config = function()
local actions = require('telescope.actions')
require('telescope').load_extension('fzf')
-
-- live grep in git repo, or fall back to current directory
vim.keymap.set('n', '<LEADER>F',
function()
end
)
-
-- give telescope window if opened with no command
vim.api.nvim_create_autocmd('VimEnter', {
pattern = '*',