3 files changed,
19 insertions(+),
5 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2022-07-29 00:09:13 +0300
Parent:
fa298d0
jump to
| A | filetype.lua |
| M | lua/core/options.lua |
| M | lua/plugins.lua |
A
filetype.lua
@@ -0,0 +1,19 @@
+if not vim.filetype then + return +end + +vim.filetype.add { + extension = { + lock = "yaml", + }, + filename = { + [".gitignore"] = "conf", + [".eslintrc"] = "jsonc", + [".prettierrc"] = "jsonc", + [".babelrc"] = "jsonc", + }, + pattern = { + [".env.*"] = "sh", + ["*.Dockerfile.*"] = "dockerfile", + }, +}
M
lua/core/options.lua
@@ -2,10 +2,6 @@ local o, g = vim.opt, vim.g
vim.cmd [[colo kanagawa]] --- use filetype.lua instead of filetype.vim -g.did_load_filetypes = 1 -g.do_filetype_lua = 1 - -- leader g.mapleader = " " g.maplocalleader = ","
M
lua/plugins.lua
@@ -14,7 +14,6 @@ return packer.startup(function(use)
use "wbthomason/packer.nvim" use "nvim-lua/plenary.nvim" use "lewis6991/impatient.nvim" - use "nathom/filetype.nvim" use "rebelot/kanagawa.nvim" -- theme use { "~/code/gopher.nvim", ft = "go" }