From 1c1ede62b47f7ac5c6dc578df0a61ea4be5649b5 Mon Sep 17 00:00:00 2001 From: hyper Date: Sat, 26 Oct 2024 19:50:09 +0800 Subject: [PATCH] lsp denols & telescope old --- lua/plugins/editing.lua | 1 + lua/plugins/tsdev.lua | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index a1c01a3..ddbe4b3 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -61,6 +61,7 @@ return { -- generic vim.keymap.set('n', 'l', builtin.live_grep, { desc = 'Telescope live grep' }) vim.keymap.set('n', 'H', builtin.help_tags, { desc = 'Telescope help tags' }) + vim.keymap.set('n', 'o', builtin.oldfiles, { desc = 'Telescope oldfiles' }) vim.keymap.set('n', 't', function() vim.cmd [[TodoTelescope]] end, { desc = 'Telescope Todo' }) diff --git a/lua/plugins/tsdev.lua b/lua/plugins/tsdev.lua index 5a5e664..c43a79d 100644 --- a/lua/plugins/tsdev.lua +++ b/lua/plugins/tsdev.lua @@ -53,9 +53,10 @@ return { lspconfig.cssls.setup { capabilities = capabilities } - -- lspconfig.denols.setup{ - -- single_file_support = false, - -- } + lspconfig.denols.setup{ + single_file_support = false, + root_dir = require('lspconfig.util').root_pattern("deno.json", "deno.jsonc") + } end },{ "nvim-treesitter/nvim-treesitter",