Updated config
This commit is contained in:
parent
4db1b72949
commit
7e2865d33b
@ -9,4 +9,5 @@ alias gt = go test
|
||||
alias gd = git diff
|
||||
alias gp = git pull
|
||||
alias gs = git status
|
||||
alias hex = hexdump -C
|
||||
alias home = /usr/bin/git $"--git-dir=($env.HOME)/.home/" $"--work-tree=($env.HOME)"
|
||||
|
8
.config/nvim/.gitignore
vendored
Normal file
8
.config/nvim/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
tt.*
|
||||
.tests
|
||||
doc/tags
|
||||
debug
|
||||
.repro
|
||||
foo.*
|
||||
*.log
|
||||
data
|
@ -1,6 +0,0 @@
|
||||
---@type ChadrcConfig
|
||||
local M = {}
|
||||
M.ui = {theme = 'onedark'}
|
||||
M.plugins = "custom.plugins"
|
||||
M.mappings = require "custom.mappings"
|
||||
return M
|
@ -1,21 +0,0 @@
|
||||
|
||||
local on_attach = require("plugins.configs.lspconfig").on_attach
|
||||
local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
local servers = {
|
||||
"clangd",
|
||||
"cssls",
|
||||
"html",
|
||||
"gopls",
|
||||
"lua_ls",
|
||||
"svelte",
|
||||
"tsserver",
|
||||
}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
@ -1,9 +0,0 @@
|
||||
local opt = vim.opt
|
||||
|
||||
-- Indenting
|
||||
opt.expandtab = false
|
||||
opt.shiftwidth = 4
|
||||
opt.tabstop = 4
|
||||
opt.softtabstop = 4
|
||||
opt.autoindent = true
|
||||
opt.smartindent = true
|
@ -1,7 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
M.disabled = {
|
||||
n = {}
|
||||
}
|
||||
|
||||
return M
|
@ -1,31 +0,0 @@
|
||||
local plugins = {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require "plugins.configs.lspconfig"
|
||||
require "custom.configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
-- default
|
||||
"lua",
|
||||
|
||||
-- web dev
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"svelte",
|
||||
"json",
|
||||
|
||||
-- low level
|
||||
"go",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return plugins
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,8 +3,7 @@
|
||||
!.gitignore
|
||||
|
||||
# Neovim
|
||||
!/.config/nvim/lua/custom/*.lua
|
||||
!/.config/nvim/lua/custom/configs/*.lua
|
||||
!/.config/nvim
|
||||
|
||||
# Nushell
|
||||
!/.config/nushell/*.nu
|
||||
|
Loading…
Reference in New Issue
Block a user