From a029b05a9949a2697366a7cd0c8c9d2ae6108885 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 16 Nov 2024 12:20:14 +0100 Subject: [PATCH] Some changes 1. Add ftplugin to set tabs for dart 2. Hide hidden files in telescope file picker 3. Specify python command in python-dap --- after/plugin/dap/dap-python.lua | 2 +- after/plugin/telescope.lua | 2 +- ftplugin/dart.lua | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 ftplugin/dart.lua diff --git a/after/plugin/dap/dap-python.lua b/after/plugin/dap/dap-python.lua index 9d92a62..6d124d3 100644 --- a/after/plugin/dap/dap-python.lua +++ b/after/plugin/dap/dap-python.lua @@ -1 +1 @@ -require('dap-python').setup() +require('dap-python').setup("python") diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 61b3984..a79289a 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -9,7 +9,7 @@ vim.keymap.set('n', 'fs', builtin.lsp_dynamic_workspace_symbols); require("telescope").setup({ pickers = { - find_files = { hidden = true } + find_files = { hidden = false } }, extensions = { ["ui-select"] = { diff --git a/ftplugin/dart.lua b/ftplugin/dart.lua new file mode 100644 index 0000000..acea62c --- /dev/null +++ b/ftplugin/dart.lua @@ -0,0 +1,3 @@ +vim.opt.shiftwidth = 2 +vim.opt.softtabstop = 2 +vim.opt.expandtab = true