From 9cc5bc186e8659a5abf581fac2053512b443d0d8 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 13 Mar 2023 16:14:28 +0900 Subject: [PATCH] add: nvim: ftplugin for satysfi to change tab size --- bin/install.sh | 2 ++ dotfiles/neovim/after/ftplugin/satysfi.lua | 7 +++++++ dotfiles/neovim/init.lua | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 dotfiles/neovim/after/ftplugin/satysfi.lua diff --git a/bin/install.sh b/bin/install.sh index e4b78ed..66a58fb 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -25,6 +25,8 @@ mkdir -p ~/.config/nvim/lua ln -sf $(pwd)/dotfiles/neovim/lua/lualine_setup.lua ~/.config/nvim/lua/lualine_setup.lua mkdir -p ~/.config/nvim/lua/lspconfig/server_configurations ln -sf $(pwd)/dotfiles/neovim/lua/lspconfig/server_configurations/satysfi_ls.lua ~/.config/nvim/lua/lspconfig/server_configurations/satysfi_ls.lua +mkdir -p ~/.config/nvim/after/ftplugin +ln -sf $(pwd)/dotfiles/neovim/after/ftplugin/satysfi.lua ~/.config/nvim/after/ftplugin/satysfi.lua mkdir -p ~/.config/nvim/after/queries/satysfi curl -o ~/.config/nvim/after/queries/satysfi/highlights.scm https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/highlights.scm curl -o ~/.config/nvim/after/queries/satysfi/indents.scm https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/indents.scm diff --git a/dotfiles/neovim/after/ftplugin/satysfi.lua b/dotfiles/neovim/after/ftplugin/satysfi.lua new file mode 100644 index 0000000..0a35a06 --- /dev/null +++ b/dotfiles/neovim/after/ftplugin/satysfi.lua @@ -0,0 +1,7 @@ +-- filetype plugin for satysfi +-- loaded after + +-- tab +vim.o.tabstop = 2 +vim.o.shiftwidth = 2 + diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index d9fb7c6..351c46b 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -275,6 +275,8 @@ lspconfig.satysfi_ls.setup { capabilities = capabilities, autostart = true, } +-- bash +lspconfig.bashls.setup {} -- nvim-cmp setup local cmp = require 'cmp'