Added editor configuration
This commit is contained in:
parent
3485f2fb6a
commit
6df4895839
28
.config/Code - OSS/User/settings.json
Normal file
28
.config/Code - OSS/User/settings.json
Normal 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"
|
||||
}
|
6
.config/nvim/lua/custom/chadrc.lua
Normal file
6
.config/nvim/lua/custom/chadrc.lua
Normal file
@ -0,0 +1,6 @@
|
||||
---@type ChadrcConfig
|
||||
local M = {}
|
||||
M.ui = {theme = 'onedark'}
|
||||
M.plugins = "custom.plugins"
|
||||
M.mappings = require "custom.mappings"
|
||||
return M
|
21
.config/nvim/lua/custom/configs/lspconfig.lua
Normal file
21
.config/nvim/lua/custom/configs/lspconfig.lua
Normal 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
|
9
.config/nvim/lua/custom/init.lua
Normal file
9
.config/nvim/lua/custom/init.lua
Normal 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
|
7
.config/nvim/lua/custom/mappings.lua
Normal file
7
.config/nvim/lua/custom/mappings.lua
Normal file
@ -0,0 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
M.disabled = {
|
||||
n = {}
|
||||
}
|
||||
|
||||
return M
|
31
.config/nvim/lua/custom/plugins.lua
Normal file
31
.config/nvim/lua/custom/plugins.lua
Normal 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
10
.gitignore
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user