summaryrefslogtreecommitdiff
path: root/dot_config/nvim_new/lsp/buck2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim_new/lsp/buck2.lua')
-rw-r--r--dot_config/nvim_new/lsp/buck2.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/nvim_new/lsp/buck2.lua b/dot_config/nvim_new/lsp/buck2.lua
new file mode 100644
index 0000000..8c64746
--- /dev/null
+++ b/dot_config/nvim_new/lsp/buck2.lua
@@ -0,0 +1,16 @@
+---@brief
+---
+--- https://github.com/facebook/buck2
+---
+--- Build system, successor to Buck
+---
+--- To better detect Buck2 project files, the following can be added:
+---
+--- ```
+--- vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]]
+--- ```
+return {
+ cmd = { 'buck2', 'lsp' },
+ filetypes = { 'bzl' },
+ root_markers = { '.buckconfig' },
+}