Added editor configuration

This commit is contained in:
Eduard Urbach 2023-07-17 12:01:07 +02:00
parent 3485f2fb6a
commit 6df4895839
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
8 changed files with 112 additions and 3 deletions

View File

@ -0,0 +1,28 @@
{
"editor.fontFamily": "UbuntuMono Nerd Font",
"editor.fontSize": 15,
"editor.hideCursorInOverviewRuler": true,
"editor.insertSpaces": false,
"editor.renderFinalNewline": "off",
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.verticalScrollbarSize": 0,
"editor.scrollBeyondLastLine": false,
"files.insertFinalNewline": false,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"gitProjectManager.baseProjectsFolders": ["/home/eduard/projects"],
"gitProjectManager.checkRemoteOrigin": false,
"gitProjectManager.ignoredFolders": ["node_modules"],
"gitProjectManager.maxDepthRecursion": 2,
"gitProjectManager.openInNewWindow": false,
"gitProjectManager.storeRepositoriesBetweenSessions": true,
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
"security.workspace.trust.enabled": false,
"window.menuBarVisibility": "hidden",
"window.zoomLevel": 1,
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "none"
}

View File

@ -0,0 +1,6 @@
---@type ChadrcConfig
local M = {}
M.ui = {theme = 'onedark'}
M.plugins = "custom.plugins"
M.mappings = require "custom.mappings"
return M

View File

@ -0,0 +1,21 @@
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

View File

@ -0,0 +1,9 @@
local opt = vim.opt
-- Indenting
opt.expandtab = false
opt.shiftwidth = 4
opt.tabstop = 4
opt.softtabstop = 4
opt.autoindent = true
opt.smartindent = true

View File

@ -0,0 +1,7 @@
local M = {}
M.disabled = {
n = {}
}
return M

View File

@ -0,0 +1,31 @@
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

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
*
!*/
!.gitignore
# Neovim
!/.config/nvim/lua/custom/*.lua
!/.config/nvim/lua/custom/configs/*.lua
# VS Code
!/.config/Code - OSS/User/settings.json

View File

@ -1,3 +0,0 @@
# home
Home directory