[nvim] Add filetypes settings
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
{{ if eq .chezmoi.osRelease.id "nixos" }}
|
||||
exit 0
|
||||
{{ end }}
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Installing LSPs for Neovim..."
|
||||
|
||||
npm install -g --prefix ~/.local \
|
||||
@vtsls/language-server \
|
||||
@vue/language-server \
|
||||
vscode-langservers-extracted
|
||||
|
||||
dotnet tool install -g roslyn-language-server --prerelease
|
||||
dotnet tool install -g csharpier
|
||||
|
||||
echo "Done"
|
||||
@@ -1,6 +1,7 @@
|
||||
require("config.autocmds")
|
||||
require("config.options")
|
||||
require("config.filetypes")
|
||||
require("config.keymaps")
|
||||
require("config.options")
|
||||
|
||||
require("config.lazy")
|
||||
require("config.theme") -- ignored by git
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
vim.filetype.add({
|
||||
pattern = {
|
||||
[".*%.tmpl"] = function(path, _)
|
||||
local ext = path:match("%.(%w+)%.tmpl$")
|
||||
if ext then
|
||||
return ext
|
||||
end
|
||||
|
||||
return "template"
|
||||
end,
|
||||
},
|
||||
})
|
||||
@@ -5,6 +5,7 @@ return {
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").install({
|
||||
"bash",
|
||||
"c",
|
||||
"caddy",
|
||||
"c_sharp",
|
||||
|
||||
Reference in New Issue
Block a user